Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix(dockefile): pass env
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Sep 22, 2023
1 parent b5a7b9d commit e1e0e74
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,30 @@ FROM docker.io/library/node:${NODE_VERSION}-alpine as app

WORKDIR /app

ARG APP_KEYS
ARG API_TOKEN_SALT
ARG ADMIN_JWT_SECRET
ARG TRANSFER_TOKEN_SALT
ARG JWT_SECRET

ENV NODE_ENV production
ENV NODE_POST 80
ENV APP_KEYS $APP_KEYS
ENV API_TOKEN_SALT $API_TOKEN_SALT
ENV ADMIN_JWT_SECRET $ADMIN_JWT_SECRET
ENV TRANSFER_TOKEN_SALT $TRANSFER_TOKEN_SALT
ENV JWT_SECRET $JWT_SECRET

RUN apk add --no-cache sqlite

# Copy builded files from last stage
COPY --from=builder /app/.yarn .yarn
COPY --from=builder /app/package.json /app/*.lock /app/.yarnrc.yml ./
COPY --from=builder /app/.env ./
COPY --from=builder /app/public/ ./public
COPY --from=builder /app/dist/ ./dist

RUN echo JWT_SECRET

RUN yarn workspaces focus --production

CMD ["yarn", "start"]

0 comments on commit e1e0e74

Please sign in to comment.