Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +20 -7
Dockerfile
CHANGED
@@ -1,17 +1,30 @@
|
|
1 |
-
# Use
|
2 |
-
FROM
|
3 |
|
4 |
# Set environment variables to avoid interactive prompts
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
7 |
-
# Install
|
8 |
RUN apt-get update && \
|
9 |
apt-get install -y \
|
|
|
|
|
|
|
10 |
python3 \
|
11 |
python3-pip \
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ["
|
|
|
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"]
|