pastel.codes/dockerfile

22 lines
335 B
Plaintext
Raw Normal View History

2021-02-14 21:56:24 +00:00
FROM node:15.8.0
2021-02-15 01:45:26 +00:00
ARG port =
ENV PORT=${port}
ENV IS_DOCKER=true
ENV NODE_ENV=production
2021-02-14 21:56:24 +00:00
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" ]
2021-02-15 01:45:26 +00:00
EXPOSE ${port}/tcp