Initial commit
This commit is contained in:
11
Frontend/Dockerfile
Normal file
11
Frontend/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
#stage 1
|
||||
FROM node:latest as node
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm run build --prod
|
||||
#stage 2
|
||||
FROM nginx:alpine
|
||||
COPY nginx.conf /etc/nginx/sites-available/default
|
||||
COPY --from=node /app/dist/frontend /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user