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

Commit

Permalink
fix(cron): use a proper .env file (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx authored Feb 8, 2022
1 parent 76ba577 commit 5a78911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .

RUN if [ -z "$PRODUCTION" ]; then echo "Copy staging values"; cp .env.staging .env.production; cp ./public/robots.staging.txt ./public/robots.txt; fi
RUN if [ -z "$PRODUCTION" ]; then echo "Copy staging values"; cp .env.staging .env; cp ./public/robots.staging.txt ./public/robots.txt; else echo "Copy prod values"; cp .env.production .env; fi
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline

# Production image, copy all the files and run next
Expand All @@ -23,7 +23,7 @@ COPY --from=builder /app/next.config.js .
COPY --from=builder /app/sentry.client.config.js .
COPY --from=builder /app/sentry.server.config.js .
COPY --from=builder /app/.sequelizerc .
COPY --from=builder /app/.env.production .
COPY --from=builder /app/.env .
COPY --from=builder /app/package.json .
COPY --from=builder /app/src ./src
COPY --from=builder /app/public ./public
Expand Down

0 comments on commit 5a78911

Please sign in to comment.