mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
Updated dockerfile
Uses git rather than copying. Made it more portable :3
This commit is contained in:
parent
643c6d0c95
commit
418552349d
25
dockerfile
25
dockerfile
@ -3,30 +3,9 @@ FROM node:15.8.0
|
|||||||
ENV IS_DOCKER=true
|
ENV IS_DOCKER=true
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
ARG port
|
RUN git clone https://github.com/BlankFaces/pastel.codes.git
|
||||||
ENV PORT=${port}
|
WORKDIR pastel.codes
|
||||||
EXPOSE ${port}/tcp
|
|
||||||
|
|
||||||
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
|
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
|
||||||
RUN npm install && npm install nodemon
|
RUN npm install && npm install nodemon
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user