Skip to content

Commit a4b3a91

Browse files
committed
Mettre à jour le Dockerfile pour utiliser node:20-bookworm-slim
1 parent fb6b914 commit a4b3a91

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Dockerfile

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-bookworm-slim
1+
FROM node:20-bookworm-slim
22

33
ARG NODE_ENV=production
44
ENV NODE_ENV=${NODE_ENV}
@@ -8,31 +8,31 @@ WORKDIR /usr/src/app
88

99
# Install dependencies. Note that the package names and the package manager are different for Debian-based images.
1010
RUN apt-get update && apt-get -y --no-install-recommends upgrade && apt-get install -y --no-install-recommends \
11-
git \
12-
jq \
13-
nano \
14-
vim \
15-
bash \
16-
bash-completion \
17-
iputils-ping \
18-
telnet \
19-
dnsutils \
20-
net-tools \
21-
tcpdump \
22-
&& apt-get clean \
23-
&& rm -rf /var/lib/apt/lists/*
11+
git \
12+
jq \
13+
nano \
14+
vim \
15+
bash \
16+
bash-completion \
17+
iputils-ping \
18+
telnet \
19+
dnsutils \
20+
net-tools \
21+
tcpdump \
22+
&& apt-get clean \
23+
&& rm -rf /var/lib/apt/lists/*
2424

2525
COPY . .
2626

2727
RUN yarn install \
28-
--prefer-offline \
29-
--frozen-lockfile \
30-
--non-interactive \
31-
--production=false \
32-
&& yarn cache clean \
33-
&& yarn autoclean --init \
34-
&& yarn autoclean --force
28+
--prefer-offline \
29+
--frozen-lockfile \
30+
--non-interactive \
31+
--production=false \
32+
&& yarn cache clean \
33+
&& yarn autoclean --init \
34+
&& yarn autoclean --force
3535

3636
EXPOSE 3000
3737

38-
CMD ["yarn", "start:prod"]
38+
CMD ["yarn", "run", "start:prod"]

0 commit comments

Comments
 (0)