init: Initial Commit
This commit is contained in:
13
services/frontend/Dockerfile
Normal file
13
services/frontend/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:lts-alpine as develop-stage
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN yarn install
|
||||
COPY . .
|
||||
|
||||
FROM develop-stage as build-stage
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user