kill-the-newsletter/Dockerfile

22 lines
403 B
Docker
Raw Normal View History

2021-10-06 05:40:04 +02:00
FROM node:16
RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com:
WORKDIR /kill-the-newsletter
2021-10-06 08:08:05 +02:00
COPY . .
2021-10-06 05:40:04 +02:00
RUN npm ci
RUN npm dedupe --production
2021-10-07 07:39:06 +02:00
VOLUME /kill-the-newsletter/data
2021-10-06 05:40:04 +02:00
ENV WEB_PORT=4000
2021-10-06 05:40:04 +02:00
ENV EMAIL_PORT=2525
ENV BASE_URL=http://localhost:4000
ENV SMTP_URL=smtp://localhost
2021-10-06 08:09:34 +02:00
ENV ISSUE_REPORT_EMAIL=kill-the-newsletter@leafac.com
2021-10-06 05:40:04 +02:00
EXPOSE 4000
2021-10-06 05:40:04 +02:00
EXPOSE 2525
CMD node .