pastel.codes/dockerfile
2021-02-15 01:45:26 +00:00

22 lines
335 B
Plaintext

FROM node:15.8.0
ARG port =
ENV PORT=${port}
ENV IS_DOCKER=true
ENV NODE_ENV=production
ENV GHOST_KEY=
ENV HCAPTCHA_KEY=
ENV SENDGRID_API_KEY=
ENV TO_MAIL_USER=
ENV REPLY_TO_MAIL=
ENV FROM_MAIL_USER=
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install
COPY . .
CMD [ "npm", "start" ]
EXPOSE ${port}/tcp