Files
caprover/dockerfiles/node
2020-07-04 10:16:09 -04:00

18 lines
396 B
Plaintext

# FROM node:14-alpine
# Uncomment the line above if you want to use a Dockerfile instead of templateId
RUN apk update && apk upgrade && \
apk add --no-cache git
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY ./package.json /usr/src/app/
RUN npm install --production && npm cache clean --force
COPY ./ /usr/src/app
ENV NODE_ENV production
ENV PORT 80
EXPOSE 80
CMD [ "npm", "start" ]