mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 04:31:50 +01:00
14 lines
294 B
Plaintext
14 lines
294 B
Plaintext
FROM node:16.15-alpine as build
|
|
WORKDIR /app
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
COPY package*.json ./
|
|
RUN yarn install
|
|
COPY . ./
|
|
RUN yarn build
|
|
|
|
# production environment
|
|
FROM nginx:stable-alpine
|
|
COPY --from=build /app/build /usr/share/nginx/html
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|