2021-02-14 21:56:24 +00:00
|
|
|
FROM node:15.8.0
|
|
|
|
|
2021-02-15 01:45:26 +00:00
|
|
|
ENV IS_DOCKER=true
|
|
|
|
ENV NODE_ENV=production
|
2021-02-15 02:30:46 +00:00
|
|
|
|
|
|
|
ARG port
|
|
|
|
ENV PORT=${port}
|
|
|
|
EXPOSE ${port}/tcp
|
|
|
|
|
|
|
|
ARG ghost_key
|
|
|
|
ENV GHOST_KEY=${ghost_key}
|
|
|
|
|
|
|
|
ARG hcaptcha_key
|
|
|
|
ENV HCAPTCHA_KEY=${hcaptcha_key}
|
|
|
|
|
|
|
|
ARG sendgrid_key
|
|
|
|
ENV SENDGRID_API_KEY=${sendgrid_key}
|
|
|
|
|
|
|
|
ARG mail_to
|
|
|
|
ENV TO_MAIL_USER=${mail_to}
|
|
|
|
|
|
|
|
ARG reply_to
|
|
|
|
ENV REPLY_TO_MAIL=${reply_to}
|
|
|
|
|
|
|
|
ARG mail_from
|
|
|
|
ENV FROM_MAIL_USER=${mail_from}
|
2021-02-14 21:56:24 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ["package.json", "package-lock.json*", "./"]
|
2021-02-15 02:30:46 +00:00
|
|
|
RUN npm install && npm install nodemon
|
2021-02-14 21:56:24 +00:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
CMD [ "npm", "start" ]
|