Spaces:
Sleeping
Sleeping
A-baoYang
commited on
Commit
·
e8e962e
1
Parent(s):
e2a385e
Edit Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -4,7 +4,8 @@ WORKDIR /code
|
|
| 4 |
|
| 5 |
RUN apt-get update && \
|
| 6 |
apt-get upgrade -y && \
|
| 7 |
-
apt-get install -y git
|
|
|
|
| 8 |
|
| 9 |
# Set up a new user named "user" with user ID 1000
|
| 10 |
RUN useradd -m -u 1000 user
|
|
@@ -33,6 +34,5 @@ RUN pip install --no-cache-dir --upgrade -r $HOME/app/autocrawler/requirements.t
|
|
| 33 |
|
| 34 |
RUN playwright install
|
| 35 |
|
| 36 |
-
RUN apt-get install libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libdbus-1-3 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2
|
| 37 |
|
| 38 |
CMD ["python", "app.py"]
|
|
|
|
| 4 |
|
| 5 |
RUN apt-get update && \
|
| 6 |
apt-get upgrade -y && \
|
| 7 |
+
apt-get install -y git && \
|
| 8 |
+
apt-get install libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libdbus-1-3 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2
|
| 9 |
|
| 10 |
# Set up a new user named "user" with user ID 1000
|
| 11 |
RUN useradd -m -u 1000 user
|
|
|
|
| 34 |
|
| 35 |
RUN playwright install
|
| 36 |
|
|
|
|
| 37 |
|
| 38 |
CMD ["python", "app.py"]
|