更新 port 為 3005,更新 README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# sudo docker run -d -p 3005:3005 --name rental-contract-pdf rental-contract-pdf
|
||||
|
||||
FROM node:20-bookworm-slim
|
||||
|
||||
RUN apt-get update \
|
||||
@@ -20,11 +22,11 @@ RUN if [ -d fonts ] && ls fonts/*.{ttf,otf,ttc} 2>/dev/null | grep -q .; then \
|
||||
fi
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV PORT=3005
|
||||
ENV TEMPLATE_DIR=/app/templates
|
||||
ENV TEMP_DIR=/tmp/rental-contracts
|
||||
ENV SOFFICE_BIN=soffice
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3005
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
||||
Reference in New Issue
Block a user