Skip to content

Commit 126bc78

Browse files
authored
fix docker builds (#145)
1 parent 1f9788b commit 126bc78

File tree

4 files changed

+56
-28
lines changed

4 files changed

+56
-28
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v20.17.0

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
FROM node:20-alpine AS build
1+
FROM node:20.17.0-alpine AS build
22

33
WORKDIR /app
44

55
COPY package.*json ./
6-
RUN npm install
6+
RUN npm --mount=type=cache,target=/root/.npm install
77

88
COPY . .
99
RUN npm run build
1010

1111

12-
FROM node:20-alpine AS production
12+
FROM node:20.17.0-alpine AS production
1313

1414
WORKDIR /app
1515

1616
RUN mkdir /app/images
1717

1818
COPY package.*json ./
19-
RUN npm install --omit=dev
19+
RUN npm --mount=type=cache,target=/root/.npm install --omit=dev
2020

2121
COPY --from=build /app/prisma ./prisma
2222
COPY --from=build /app/dist ./dist

package-lock.json

Lines changed: 45 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@
6161
"homepage": "https://github.com/coronasafe/teleicu_middleware#readme",
6262
"devDependencies": {
6363
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
64-
"@types/connect-flash": "^0.0.39",
64+
"@types/connect-flash": "^0.0.40",
6565
"@types/cookie-parser": "^1.4.6",
6666
"@types/cors": "^2.8.15",
67+
"@types/dotenv": "^6.1.1",
68+
"@types/express": "^4.17.21",
69+
"@types/express-serve-static-core": "^4.19.2",
6770
"@types/express-session": "^1.17.9",
6871
"@types/express-ws": "^3.0.1",
6972
"@types/lodash.groupby": "^4.6.8",
@@ -83,6 +86,6 @@
8386
"typescript": "^5.2.2"
8487
},
8588
"engines": {
86-
"node": ">=20.0.0"
89+
"node": "v20.17.0"
8790
}
88-
}
91+
}

0 commit comments

Comments
 (0)