Files
hammond/ui/Dockerfile
Akhil Gupta d25c30a7b2 first commit
2021-05-29 15:20:50 +05:30

13 lines
276 B
Docker

FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]