Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +19 -5
Dockerfile
CHANGED
|
@@ -1,15 +1,29 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
-
RUN pip3 install
|
| 7 |
RUN pip3 list
|
| 8 |
|
| 9 |
-
# Set up a new user named "user" with user ID 1000
|
| 10 |
RUN useradd -m -u 1000 user
|
| 11 |
-
|
| 12 |
USER user
|
|
|
|
| 13 |
WORKDIR /app
|
| 14 |
COPY . /app
|
| 15 |
|
|
|
|
| 1 |
+
FROM selenium/standalone-chrome:latest
|
| 2 |
|
| 3 |
+
USER root
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
+
# build-essential \
|
| 7 |
+
# git \
|
| 8 |
+
# python3 \
|
| 9 |
+
# python3-dev \
|
| 10 |
+
# python3-numpy \
|
| 11 |
+
python3-pip \
|
| 12 |
+
# python3-setuptools \
|
| 13 |
+
# openssl \
|
| 14 |
+
# libffi-dev \
|
| 15 |
+
# libssl-dev \
|
| 16 |
+
# python3-wheel \
|
| 17 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
COPY requirements.txt .
|
| 20 |
+
RUN pip3 install -r requirements.txt
|
| 21 |
RUN pip3 list
|
| 22 |
|
|
|
|
| 23 |
RUN useradd -m -u 1000 user
|
| 24 |
+
|
| 25 |
USER user
|
| 26 |
+
|
| 27 |
WORKDIR /app
|
| 28 |
COPY . /app
|
| 29 |
|