PairDrop/Dockerfile

21 lines
441 B
Text
Raw Normal View History

FROM alpine:latest
2022-11-14 18:00:35 +01:00
WORKDIR /home/node/app
COPY package*.json ./
RUN apk add --no-cache nodejs npm
RUN NODE_ENV="production" npm ci --omit=dev
2022-11-14 18:00:35 +01:00
# Directories and files excluded via .dockerignore
2022-11-14 18:00:35 +01:00
COPY . .
# environment settings
ENV NODE_ENV="production"
2022-11-14 18:00:35 +01:00
EXPOSE 3000
2023-03-13 20:38:36 +01:00
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1
2023-11-02 03:17:20 +01:00
ENTRYPOINT ["npm", "start"]