Attempt to add dockerfile

This commit is contained in:
Esther
2021-02-15 01:45:26 +00:00
parent 32bdec59fe
commit 84c82f6a56
5 changed files with 33 additions and 6 deletions

View File

@@ -1,7 +1,10 @@
FROM node:15.8.0
ENV PORT=
ENV NODE_ENV=
ARG port =
ENV PORT=${port}
ENV IS_DOCKER=true
ENV NODE_ENV=production
ENV GHOST_KEY=
ENV HCAPTCHA_KEY=
ENV SENDGRID_API_KEY=
@@ -15,4 +18,4 @@ RUN npm install
COPY . .
CMD [ "npm", "start" ]
EXPOSE 7000/tcp
EXPOSE ${port}/tcp