racemash/Dockerfile

12 lines
285 B
Docker
Raw Normal View History

2024-07-26 16:36:36 +02:00
FROM node:lts-alpine AS build
WORKDIR /app
COPY . .
RUN npm i
RUN npm run build
2024-07-26 16:53:59 +02:00
FROM nginx:stable-alpine AS runtime
COPY --from=build /app/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
2024-07-26 16:36:36 +02:00
EXPOSE 80
2024-07-26 16:53:59 +02:00
CMD ["nginx", "-g", "daemon off;"]