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
|
|
|
|
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
RUN npm dedupe --production
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
VOLUME /kill-the-newsletter/static/feeds/
|
|
|
|
VOLUME /kill-the-newsletter/static/alternate/
|
|
|
|
|
2021-10-06 06:54:28 +02:00
|
|
|
ENV WEB_PORT=4000
|
2021-10-06 05:40:04 +02:00
|
|
|
ENV EMAIL_PORT=2525
|
2021-10-06 06:54:28 +02:00
|
|
|
ENV BASE_URL=http://localhost:4000
|
2021-10-06 05:40:04 +02:00
|
|
|
ENV EMAIL_DOMAIN=localhost
|
|
|
|
ENV ISSUE_REPORT=mailto:kill-the-newsletter@leafac.com
|
|
|
|
|
2021-10-06 06:54:28 +02:00
|
|
|
EXPOSE 4000
|
2021-10-06 05:40:04 +02:00
|
|
|
EXPOSE 2525
|
|
|
|
|
|
|
|
CMD npx ts-node .
|