Allow custom data volume and port arguments in Dockerfile

This commit is contained in:
Nehal Patel 2021-10-07 01:39:45 -05:00
parent 69ec9649d7
commit 60fdc25927
1 changed files with 0 additions and 5 deletions

View File

@ -8,15 +8,10 @@ COPY . .
RUN npm ci RUN npm ci
RUN npm dedupe --production RUN npm dedupe --production
VOLUME /kill-the-newsletter/data
ENV WEB_PORT=4000 ENV WEB_PORT=4000
ENV EMAIL_PORT=2525 ENV EMAIL_PORT=2525
ENV BASE_URL=http://localhost:4000 ENV BASE_URL=http://localhost:4000
ENV SMTP_URL=smtp://localhost ENV SMTP_URL=smtp://localhost
ENV ISSUE_REPORT_EMAIL=kill-the-newsletter@leafac.com ENV ISSUE_REPORT_EMAIL=kill-the-newsletter@leafac.com
EXPOSE 4000
EXPOSE 2525
CMD node . CMD node .