balls
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -7,7 +7,9 @@ RUN npm install --force
|
||||
|
||||
COPY . .
|
||||
|
||||
# Set build-time environment variables to use relative URLs
|
||||
ENV NEXT_PUBLIC_API_URL=/api
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Build the Next.js application
|
||||
RUN npm run build
|
||||
@@ -34,8 +36,17 @@ COPY --from=builder /app/backend ./backend
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Set runtime environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_PUBLIC_API_URL=/api
|
||||
# Force server to use internal URLs (no localhost references)
|
||||
ENV SERVER_API_URL=http://localhost:3000/api
|
||||
# Disable HTTPS for internal container communication
|
||||
ENV USE_HTTPS=false
|
||||
# Ensure internal API calls for server components go to the right port
|
||||
ENV INTERNAL_API_PORT=3000
|
||||
# Disable telemetry
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Start Next.js server
|
||||
CMD ["npm", "run", "start:tor"]
|
||||
Reference in New Issue
Block a user