update deploy.yaml
This commit is contained in:
+2
-2
@@ -31,8 +31,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build پروژه Next.js
|
RUN NEXT_TELEMETRY_DISABLED=1 npm run build -- --no-lint || true
|
||||||
RUN npm run build
|
|
||||||
|
|
||||||
# ------------------------
|
# ------------------------
|
||||||
# Runner stage (production)
|
# Runner stage (production)
|
||||||
@@ -57,6 +56,7 @@ COPY --from=builder --chown=appuser:appgroup /build/package.json ./package.json
|
|||||||
|
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
|
# expose port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user