xfcxcxcdfdfd commited on
Commit
de28065
·
verified ·
1 Parent(s): 71bf31a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -7
Dockerfile CHANGED
@@ -1,17 +1,30 @@
1
- # Use Selenium's official Chrome image
2
- FROM selenium/standalone-chrome:latest
3
 
4
  # Set environment variables to avoid interactive prompts
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
- # Install Python and dependencies for your app
8
  RUN apt-get update && \
9
  apt-get install -y \
 
 
 
10
  python3 \
11
  python3-pip \
12
- git \
13
- wget \
14
- unzip
 
 
 
 
 
 
 
 
 
 
15
 
16
  # Clone the repository
17
  RUN git clone https://github.com/AcidCaos/socialemperors.git /app/socialemperors
@@ -33,4 +46,4 @@ RUN wget https://archive.org/download/flashplayerarchive/pub/flashplayer/install
33
  ENV CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/adobe-flashplugin/libpepflashplayer.so --ppapi-flash-version=32.0.0.371"
34
 
35
  # Set the default command to run the Python server and Chromium with Flash support
36
- CMD ["bash", "-c", "python3 server.py & chromium-browser --no-sandbox --disable-gpu $CHROMIUM_FLAGS"]
 
1
+ # Use an official Ubuntu as a parent image
2
+ FROM ubuntu:20.04
3
 
4
  # Set environment variables to avoid interactive prompts
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
+ # Install necessary dependencies
8
  RUN apt-get update && \
9
  apt-get install -y \
10
+ wget \
11
+ curl \
12
+ git \
13
  python3 \
14
  python3-pip \
15
+ libnss3 \
16
+ libatk-bridge2.0-0 \
17
+ libgtk-3-0 \
18
+ libdbus-1-3 \
19
+ libxtst6 \
20
+ libxss1 \
21
+ libasound2 \
22
+ libgbm1 \
23
+ unzip \
24
+ gnupg2 \
25
+ lsb-release \
26
+ chromium-browser \
27
+ && apt-get clean
28
 
29
  # Clone the repository
30
  RUN git clone https://github.com/AcidCaos/socialemperors.git /app/socialemperors
 
46
  ENV CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/adobe-flashplugin/libpepflashplayer.so --ppapi-flash-version=32.0.0.371"
47
 
48
  # Set the default command to run the Python server and Chromium with Flash support
49
+ CMD ["python3 server.py"]