260218:1712 20260218 TASK-BEFE-001n
All checks were successful
Build and Deploy / deploy (push) Successful in 4m55s
All checks were successful
Build and Deploy / deploy (push) Successful in 4m55s
This commit is contained in:
@@ -63,6 +63,9 @@ ENV PORT=3000
|
||||
RUN addgroup -g 1001 -S nextjs && \
|
||||
adduser -S nextjs -u 1001
|
||||
|
||||
# Install curl for healthcheck
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
# Copy standalone output from build
|
||||
COPY --from=build --chown=nextjs:nextjs /app/frontend/.next/standalone ./
|
||||
COPY --from=build --chown=nextjs:nextjs /app/frontend/.next/static ./frontend/.next/static
|
||||
@@ -71,7 +74,7 @@ USER nextjs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=20s \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=60s \
|
||||
CMD curl -f http://localhost:3000/ || exit 1
|
||||
|
||||
CMD ["node", "frontend/server.js"]
|
||||
|
||||
Reference in New Issue
Block a user