mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-27 16:15:47 +01:00
12 lines
285 B
Docker
12 lines
285 B
Docker
FROM node:lts-alpine AS build
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm i
|
|
RUN npm run build
|
|
|
|
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
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|