Update Dockerfile and package.json to include environment variables, expose port, and add server entry point; add server implementation in src/server.ts with health check and greeting endpoint.
Some checks failed
ci / build-test-pack (push) Failing after 1m21s

This commit is contained in:
2025-08-10 02:55:16 +08:00
parent 12c2569d36
commit f045f07303
4 changed files with 3879 additions and 3 deletions

View File

@@ -6,9 +6,12 @@ COPY package.json package-lock.json* tsconfig.json ./
RUN npm install --no-audit --progress=false
COPY src ./src
COPY .env* ./
RUN npm run build && npm pack
CMD ["node", "dist/index.js"]
ENV PORT=3000
EXPOSE 3000
CMD ["node", "dist/server.js"]