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 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx authored Feb 8, 2022
1 parent 5a87aa3 commit e05b02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
12 changes: 0 additions & 12 deletions .env.development

This file was deleted.

5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .

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 if [ -z "$PRODUCTION" ]; then echo "Copy staging values"; cp .env.staging .env.production; cp ./public/robots.staging.txt ./public/robots.txt; fi
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline


# Production image, copy all the files and run next
FROM node:14-alpine AS runner
WORKDIR /app
Expand All @@ -23,7 +24,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 .
COPY --from=builder /app/.env.production ./.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 e05b02d

Please sign in to comment.