Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -10,11 +10,15 @@ RUN chmod -R 777 /tmp
|
|
| 10 |
RUN chmod -R 777 /app
|
| 11 |
RUN apt-get update
|
| 12 |
#RUN apt-get install -y libnss3 libgconf-2-4 libgdk-pixbuf2.0-0 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 libxss1 libxtst6 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0
|
| 13 |
-
RUN apt-get install -y libdrm2 libnss3 libgconf-2-4 libgdk-pixbuf2.0-0 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 libxss1 libxtst6 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0
|
| 14 |
# 安装项目依赖
|
| 15 |
RUN npm install
|
| 16 |
-
RUN
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# 暴露应用运行的端口
|
| 20 |
EXPOSE 7860
|
|
|
|
| 10 |
RUN chmod -R 777 /app
|
| 11 |
RUN apt-get update
|
| 12 |
#RUN apt-get install -y libnss3 libgconf-2-4 libgdk-pixbuf2.0-0 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 libxss1 libxtst6 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0
|
| 13 |
+
#RUN apt-get install -y libdrm2 libnss3 libgconf-2-4 libgdk-pixbuf2.0-0 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 libxss1 libxtst6 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0
|
| 14 |
# 安装项目依赖
|
| 15 |
RUN npm install
|
| 16 |
+
RUN apt-get update && apt-get install -yq --no-install-recommends \
|
| 17 |
+
libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libdbus-1-3 libexpat1 \
|
| 18 |
+
libgcc1 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \
|
| 19 |
+
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \
|
| 20 |
+
libxrender1 libxss1 ca-certificates fonts-liberation libnss3 lsb-release \
|
| 21 |
+
fonts-ipafont-gothic fonts-wqy-zenhei fonts-freefont-ttf \
|
| 22 |
|
| 23 |
# 暴露应用运行的端口
|
| 24 |
EXPOSE 7860
|