+6
-5
Dockerfile
+6
-5
Dockerfile
···
1
-
FROM node:lts-alpine3.18 AS install
1
+
FROM oven/bun:alpine AS install
2
2
3
3
WORKDIR /usr/src/app
4
4
5
5
COPY package*.json ./
6
+
COPY bun.lockb ./
6
7
7
8
ENV NPM_CONFIG_LOGLEVEL warn
8
-
RUN npm ci --only=production
9
+
RUN bun install --production --no-progress
9
10
10
11
COPY . .
11
12
12
-
FROM node:lts-alpine3.18
13
+
FROM oven/bun:alpine
13
14
14
15
HEALTHCHECK --timeout=3s \
15
16
CMD curl --fail http://localhost:8080/healthcheck || exit 1
···
19
20
20
21
COPY --from=install /usr/src/app /usr/src/app/
21
22
22
-
USER node
23
+
USER bun
23
24
24
-
CMD [ "npm", "start" ]
25
+
CMD [ "bun", "index.js" ]
25
26
26
27
EXPOSE 8080
bun.lockb
bun.lockb
This is a binary file and will not be displayed.