fix(authorization-service): 修复 CMD 路径、端口号并安装 curl
This commit is contained in:
parent
f1b6370aae
commit
d5e7da4828
|
|
@ -24,9 +24,10 @@ FROM node:20-slim AS production
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install OpenSSL
|
# Install OpenSSL and curl for health checks
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
openssl \
|
openssl \
|
||||||
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
|
|
@ -43,7 +44,7 @@ COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 3002
|
EXPOSE 3009
|
||||||
|
|
||||||
# Start application
|
# Start application
|
||||||
CMD ["node", "dist/src/main.js"]
|
CMD ["node", "dist/main.js"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue