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