From 898edb152f71c6626ce7ed5c543241495c7ce100 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sat, 7 Sep 2024 23:59:58 +0100 Subject: [PATCH] Moved the Dockerfile env --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7779093..ccac37e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,8 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED 1 +ENV MONGODB_URI "mongodb+srv://user:JKpFBymv0WLv3STj@encoach.lz18a.mongodb.net/?retryWrites=true&w=majority&appName=EnCoach" + RUN yarn build # If using npm comment out above and use below instead @@ -47,8 +49,6 @@ COPY --from=builder /app/public ./public COPY --from=builder --chown=1001:1001 /app/.next/standalone ./ COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static -ENV MONGODB_URI "mongodb+srv://user:JKpFBymv0WLv3STj@encoach.lz18a.mongodb.net/?retryWrites=true&w=majority&appName=EnCoach" - USER nextjs EXPOSE 3000