Skip to content

Commit b831ced

Browse files
committed
Add prod docker files
1 parent 9ccf5ee commit b831ced

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.github
2+
node_modules
3+
.dockerignore
4+
.gitignore
5+
*.md
6+
docker*
7+
Docker*
8+
LICENSE

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 3.11.2
2+
3+
Improve docker files
4+
5+
- Add prod config without volumes and autoreload
6+
17
# 3.11.1
28

39
Better dependencies pinning

Dockerfile.prod

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM node:22.0
2+
3+
RUN \
4+
apt-get update \
5+
&& \
6+
apt-get install -y \
7+
libx11-xcb1 \
8+
libxtst6 \
9+
libnss3 \
10+
libxss1 \
11+
libasound2 \
12+
libatk-bridge2.0-0 \
13+
libgtk-3-0 \
14+
libdrm2 \
15+
libgbm1 \
16+
fonts-wqy-zenhei \
17+
&& \
18+
rm -rf /var/lib/apt/lists/*
19+
20+
RUN \
21+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
22+
&& \
23+
/root/.cargo/bin/cargo install oxipng
24+
25+
EXPOSE 3000
26+
27+
WORKDIR /app
28+
29+
COPY . /app
30+
31+
RUN npm install
32+
33+
CMD [ "npm", "run", "start" ]

0 commit comments

Comments
 (0)