Initial Node.js TypeScript service
This commit is contained in:
+15
@@ -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"]
|
||||
Reference in New Issue
Block a user