diff --git a/.env.development b/.env.development deleted file mode 100644 index 09fed5cd..00000000 --- a/.env.development +++ /dev/null @@ -1,12 +0,0 @@ -NEXT_TELEMETRY_DISABLED=1 -DATABASE_URL=postgres://monpsysante:monpsysante@localhost:5432/monpsysante -DB_LOGGING_ENABLE=true - -DEMARCHES_SIMPLIFIEES_TOKEN=api-token -DEMARCHES_SIMPLIFIEES_ID=52209 -DEMARCHES_SIMPLIFIEES_CHAMPS=[["Q2hhbXAtMTYwMzgwNQ==", "phone"], ["Q2hhbXAtMTYyNzkzOQ==", "address"], ["Q2hhbXAtMTYzOTUyNA==", "teleconsultation"], ["Q2hhbXAtMTY2MDM0Nw==", "languages"], ["Q2hhbXAtMTYzOTQwMQ==", "website"], ["Q2hhbXAtMjI0NzExMg==", "cdsmsp"], ["Q2hhbXAtMjIyMjcwMg==", "withChildren"]] - -NEXT_PUBLIC_NEW_FEATURES=true - -MAIL_ENABLED=false -SUPPORT_MAIL=monpsysante@fabrique.social.gouv.fr diff --git a/Dockerfile b/Dockerfile index 3428f8f0..4d329e09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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