mirror of
https://github.com/caprover/caprover
synced 2025-10-30 01:57:03 +00:00
18 lines
396 B
Plaintext
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" ]
|