Container commited on
Commit
3b401c5
·
verified ·
1 Parent(s): d52d4ee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -5
Dockerfile CHANGED
@@ -1,15 +1,29 @@
1
- FROM python:3.9-slim
2
 
3
- RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  COPY requirements.txt .
6
- RUN pip3 install --no-cache-dir -r requirements.txt
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
- # 切换到"user"用户
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