Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ COPY docker-entrypoint.sh /usr/local/bin/
# Make sure the entrypoint script is executable
RUN chmod +x /usr/local/bin/docker-entrypoint.sh

# Load environment variables from Render's secret file and run the build
RUN set -a && . /run/secrets/.env && set +a && npm run build

ENV OPENAI_API_KEY=openai-api-key-for-build
ENV REDIS_HOST=just-for-build-only
ENV REDIS_PORT=6379

RUN npm run build

RUN cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/

Expand Down