Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -15,23 +15,23 @@ RUN apt-get update && \
|
|
15 |
rm -rf /var/lib/apt/lists/*
|
16 |
|
17 |
# Copy requirements and install them
|
18 |
-
COPY ./reqs.txt /
|
19 |
-
RUN pip3 install --no-cache-dir -U -r /
|
20 |
|
21 |
# Set working directory
|
22 |
-
WORKDIR /
|
23 |
|
24 |
# Copy the application code
|
25 |
COPY . .
|
26 |
|
27 |
# Set appropriate permissions
|
28 |
-
RUN chown -R 1000:0 /
|
29 |
&& chown -R 1000:0 . \
|
30 |
&& chmod 777 . \
|
31 |
&& chmod 777 /usr \
|
32 |
&& chown -R 1000:0 /usr \
|
33 |
-
&& chmod -R 755 /
|
34 |
-
&& chmod +x /
|
35 |
|
36 |
# Expose port
|
37 |
EXPOSE 7860
|
|
|
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 |
&& chown -R 1000:0 . \
|
30 |
&& chmod 777 . \
|
31 |
&& chmod 777 /usr \
|
32 |
&& chown -R 1000:0 /usr \
|
33 |
+
&& chmod -R 755 /HellBot \
|
34 |
+
&& chmod +x /HellBot/start.sh
|
35 |
|
36 |
# Expose port
|
37 |
EXPOSE 7860
|