Add Dockerfile

This commit is contained in:
Nehal Patel 2021-10-05 22:40:04 -05:00
parent 8b8d524b8e
commit c7f520c9b7
1 changed files with 24 additions and 0 deletions

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
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/
ENV WEB_PORT=8000
ENV EMAIL_PORT=2525
ENV BASE_URL=http://localhost:8000
ENV EMAIL_DOMAIN=localhost
ENV ISSUE_REPORT=mailto:kill-the-newsletter@leafac.com
EXPOSE 8000
EXPOSE 2525
CMD npx ts-node .