Skip to content

Commit 90d1f25

Browse files
committed
Improve Dockerfile
1 parent 39e261f commit 90d1f25

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

end2end/server/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

end2end/server/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM node:24-slim
22

3+
USER node
34
WORKDIR /app
45

5-
COPY package.json package-lock.json /app/
6+
COPY --chown=node:node package.json package-lock.json ./
7+
RUN npm ci --ignore-scripts
68

7-
RUN npm ci
9+
COPY --chown=node:node . ./
10+
RUN node --run check:types
811

9-
COPY . /app/
10-
11-
CMD ["node" , "/app/app.ts"]
12+
CMD ["node" , "app.ts"]

end2end/server/src/zen/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type App = {
44
id: number;
55
token: string;
66
configUpdatedAt: number;
7-
}
7+
};
88

99
const apps: App[] = [];
1010

0 commit comments

Comments
 (0)