更新 port 為 3005,更新 README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 15:19:56 +08:00
parent 55cb49a8bc
commit a318c18214
2 changed files with 30 additions and 20 deletions

View File

@@ -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"]