-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathDockerfile.prod
More file actions
33 lines (26 loc) · 611 Bytes
/
Copy pathDockerfile.prod
File metadata and controls
33 lines (26 loc) · 611 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:26.3.1
RUN \
apt-get update \
&& \
apt-get install -y \
libx11-xcb1 \
libxtst6 \
libnss3 \
libxss1 \
libasound2 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libdrm2 \
libgbm1 \
fonts-wqy-zenhei \
&& \
rm -rf /var/lib/apt/lists/*
RUN \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& \
/root/.cargo/bin/cargo install oxipng
EXPOSE 3000
WORKDIR /app
COPY . /app
RUN npm install && (cd node_modules/optipng-bin && npm run postinstall)
CMD [ "npm", "run", "start" ]