mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-05 14:23:11 +07:00
update port phù hợp là 8001 và 3011
This commit is contained in:
+4
-2
@@ -13,7 +13,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# NEXT_PUBLIC_API_URL is baked in at build time via docker-compose build args
|
||||
ARG NEXT_PUBLIC_API_URL=http://backend:8000
|
||||
ARG NEXT_PUBLIC_API_URL=http://backend:8001
|
||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||
|
||||
RUN mkdir -p /app/public && npm run build
|
||||
@@ -32,6 +32,8 @@ COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/next.config.js ./
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3011
|
||||
|
||||
ENV PORT=3011
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
Reference in New Issue
Block a user