-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:12.2.0-alpine as builder
LABEL MAINTAINER='Maksim Kostromin https://github.com/daggerok'
# https://github.com/cypress-io/cypress/issues/1243
ENV CI=1
WORKDIR /src/app
COPY ./package.json package-lock.json ./
RUN npm i && npm cache clean --force
COPY . .
RUN npm run build
FROM nginx:1.16.0-alpine
LABEL MAINTAINER='Maksim Kostromin https://github.com/daggerok'
HEALTHCHECK --timeout=1s --retries=99 \
CMD wget -q --spider http://127.0.0.1:80/ \
|| exit 1
RUN apk add --update --upgrade --no-cache wget
ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /src/app/dist /usr/share/nginx/html
#COPY --from=builder /src/app /tmp/src-app
#COPY --from=builder /root /tmp/root