feat: add environment variables for production URL and API base URL in Dockerfile
This commit is contained in:
@@ -11,6 +11,8 @@ FROM node:20-alpine AS runner
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV PORT=5000
|
ENV PORT=5000
|
||||||
|
ENV VERCEL_PROJECT_PRODUCTION_URL=http://194.59.214.243:5000
|
||||||
|
ENV NEXT_PUBLIC_API_BASE_URL=http://194.59.214.243:5000/api
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder /app/package.json ./package.json
|
COPY --from=builder /app/package.json ./package.json
|
||||||
|
|||||||
Reference in New Issue
Block a user