Initial Node.js TypeScript service

This commit is contained in:
AppFactory Bot
2026-06-29 07:33:30 +00:00
commit 60cb139a33
7 changed files with 440 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:20-slim
WORKDIR /app
ENV PORT=3000
EXPOSE 3000
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=build /app/dist ./dist
CMD ["npm", "start"]