project setup
This commit is contained in:
23
Containerfile
Normal file
23
Containerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Build Stage
|
||||
FROM node:24-slim AS builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY tsconfig.json ./
|
||||
COPY src/ .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Run Stage
|
||||
FROM node:24-slim
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY --from=builder /app .
|
||||
|
||||
EXPOSE 3300
|
||||
|
||||
CMD ["node", "dist/index.js"]
|
||||
Reference in New Issue
Block a user