mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-21 15:52:19 +00:00
Updated dockerfile
This commit is contained in:
parent
84c82f6a56
commit
4d73294d4a
@ -2,5 +2,6 @@ node_modules/
|
|||||||
logs/
|
logs/
|
||||||
.git/
|
.git/
|
||||||
.gitignore
|
.gitignore
|
||||||
|
.secrets
|
||||||
dockerfile
|
dockerfile
|
||||||
README.md
|
README.md
|
||||||
|
34
dockerfile
34
dockerfile
@ -1,21 +1,33 @@
|
|||||||
FROM node:15.8.0
|
FROM node:15.8.0
|
||||||
|
|
||||||
ARG port =
|
|
||||||
|
|
||||||
ENV PORT=${port}
|
|
||||||
ENV IS_DOCKER=true
|
ENV IS_DOCKER=true
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV GHOST_KEY=
|
|
||||||
ENV HCAPTCHA_KEY=
|
ARG port
|
||||||
ENV SENDGRID_API_KEY=
|
ENV PORT=${port}
|
||||||
ENV TO_MAIL_USER=
|
EXPOSE ${port}/tcp
|
||||||
ENV REPLY_TO_MAIL=
|
|
||||||
ENV FROM_MAIL_USER=
|
ARG ghost_key
|
||||||
|
ENV GHOST_KEY=${ghost_key}
|
||||||
|
|
||||||
|
ARG hcaptcha_key
|
||||||
|
ENV HCAPTCHA_KEY=${hcaptcha_key}
|
||||||
|
|
||||||
|
ARG sendgrid_key
|
||||||
|
ENV SENDGRID_API_KEY=${sendgrid_key}
|
||||||
|
|
||||||
|
ARG mail_to
|
||||||
|
ENV TO_MAIL_USER=${mail_to}
|
||||||
|
|
||||||
|
ARG reply_to
|
||||||
|
ENV REPLY_TO_MAIL=${reply_to}
|
||||||
|
|
||||||
|
ARG mail_from
|
||||||
|
ENV FROM_MAIL_USER=${mail_from}
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "./"]
|
||||||
RUN npm install
|
RUN npm install && npm install nodemon
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
EXPOSE ${port}/tcp
|
|
||||||
|
Loading…
Reference in New Issue
Block a user