2020-04-29 08:53:07 +03:00
|
|
|
FROM node:14-alpine AS build
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
COPY . .
|
2020-05-22 10:37:17 +02:00
|
|
|
ENV NODE_ENV=production
|
2020-04-29 08:53:07 +03:00
|
|
|
RUN npm run build:app
|
|
|
|
|
|
|
|
FROM nginx:1.17-alpine
|
|
|
|
|
|
|
|
COPY --from=build /usr/src/app/build /usr/share/nginx/html
|
|
|
|
|
|
|
|
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1
|