hrms-mgt/Dockerfile

22 lines
461 B
Text
Raw Normal View History

2023-06-01 12:54:58 +07:00
# docker build . -t docker.frappet.com/demo/fe:latest
2023-10-20 17:38:44 +07:00
FROM node:lts as build-stage
2023-06-01 12:54:58 +07:00
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod u+x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]