Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +36 -29
Dockerfile
CHANGED
@@ -1,29 +1,36 @@
|
|
1 |
-
FROM python:3.9.5-buster
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
RUN
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
#
|
25 |
-
COPY
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9.5-buster
|
2 |
+
|
3 |
+
# Install dependencies
|
4 |
+
RUN apt-get update && \
|
5 |
+
apt-get install --no-install-recommends -y \
|
6 |
+
python3-dev \
|
7 |
+
python3-pip \
|
8 |
+
python3-virtualenv \
|
9 |
+
git \
|
10 |
+
mediainfo \
|
11 |
+
nano \
|
12 |
+
ffmpeg \
|
13 |
+
unzip && \
|
14 |
+
apt-get clean && \
|
15 |
+
rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
+
# Copy requirements and install them
|
18 |
+
COPY ./reqs.txt /Hellbot/reqs.txt
|
19 |
+
RUN pip3 install --no-cache-dir -U -r /Hellbot/reqs.txt
|
20 |
+
|
21 |
+
# Set working directory
|
22 |
+
WORKDIR /Hellbot
|
23 |
+
|
24 |
+
# Copy the application code
|
25 |
+
COPY . .
|
26 |
+
|
27 |
+
# Set appropriate permissions
|
28 |
+
RUN chown -R 1000:0 /Hellbot && \
|
29 |
+
chmod -R 755 /Hellbot && \
|
30 |
+
chmod +x /Hellbot/start.sh
|
31 |
+
|
32 |
+
# Expose port
|
33 |
+
EXPOSE 7860
|
34 |
+
|
35 |
+
# Start the application using the start.sh script
|
36 |
+
CMD ["./start.sh"]
|