21 lines
354 B
Docker
21 lines
354 B
Docker
FROM node:latest as build-stage
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY ./ .
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM nginx:stable-alpine as production-stage
|
|
RUN mkdir /app
|
|
|
|
RUN apk add --no-cache tzdata
|
|
ENV TZ Europe/Warsaw
|
|
|
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
EXPOSE 443
|