포트변경
This commit is contained in:
@@ -22,7 +22,7 @@ RUN apk add --no-cache tzdata \
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3000
|
||||
ENV PORT=4055
|
||||
|
||||
# 빌드 결과물 복사
|
||||
COPY --from=builder /app/.output /app/.output
|
||||
@@ -40,10 +40,7 @@ RUN addgroup -g 1001 -S nodejs \
|
||||
&& chown -R nuxt:nodejs /app
|
||||
|
||||
USER nuxt
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
|
||||
EXPOSE 4055
|
||||
|
||||
# .env 로드 후 실행
|
||||
CMD ["sh", "-c", "export $(grep -v '^#' .env | xargs) && node .output/server/index.mjs"]
|
||||
|
||||
Reference in New Issue
Block a user