You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
330 B
17 lines
330 B
FROM node:14-alpine AS build |
|
|
|
WORKDIR /opt/node_app |
|
|
|
COPY package.json package-lock.json ./ |
|
RUN npm i --no-optional |
|
|
|
ARG NODE_ENV=production |
|
|
|
COPY . . |
|
RUN npm run build:app:docker |
|
|
|
FROM nginx:1.17-alpine |
|
|
|
COPY --from=build /opt/node_app/build /usr/share/nginx/html |
|
|
|
HEALTHCHECK CMD wget -q -O /dev/null http://localhost || exit 1
|
|
|