Skip to content

Commit 2281e45

Browse files
authored
Separate apt-get update and install commands
Fixing a common bug for when apt-get update fails
1 parent 1fba1d3 commit 2281e45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
FROM node:20-slim
33

44
# Install build dependencies for sqlite3
5-
RUN apt-get update && apt-get install -y \
5+
RUN apt-get update
6+
RUN apt-get install -y \
67
python3 \
78
make \
89
g++ \
@@ -33,4 +34,4 @@ RUN npm rebuild sqlite3 --build-from-source
3334
EXPOSE 3000
3435

3536
# Start the server
36-
CMD ["npm", "run", "start"]
37+
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)