We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c096bc commit 4ea039aCopy full SHA for 4ea039a
.dockerignore
@@ -0,0 +1,13 @@
1
+*.log
2
+*.md
3
+*.tsbuildinfo
4
+.dockerignore
5
+.env
6
+.git
7
+.github
8
+.gitignore
9
+Dockerfile
10
+example.env
11
+LICENSE
12
+node_modules
13
+npm-debug.log
Dockerfile
@@ -1,11 +1,25 @@
-FROM node:24
+FROM node:24-slim AS builder
WORKDIR /app
COPY package*.json ./
-RUN npm install
-COPY . .
+RUN npm ci
-EXPOSE 80
+COPY tsconfig.json ./
+COPY src ./src
-CMD npm start
+RUN npx tsc
+
+FROM node:24-slim
14
15
+WORKDIR /app
16
17
+COPY package*.json ./
18
+RUN npm ci --production
19
20
+COPY --from=builder /app/dist ./dist
21
+COPY views ./views
22
23
+EXPOSE ${port:-80}
24
25
+CMD ["npm", "start"]
0 commit comments