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