Spaces:
Build error
Build error
Upload Dockerfile
Browse files- Dockerfile +14 -14
Dockerfile
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
FROM ubuntu
|
2 |
|
3 |
-
RUN
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
#RUN apt-get install -y wget unzip && apt-get update && apt-get install -y python3 python3-pip python3.12-venv
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
1 |
FROM ubuntu
|
2 |
|
3 |
+
RUN apt-get update && \
|
4 |
+
apt-get install -y sudo && \
|
5 |
+
apt-get clean
|
6 |
+
RUN apt-get install -y wget unzip && apt-get update && apt-get install -y python3 python3-pip python3.12-venv
|
|
|
7 |
|
8 |
+
RUN useradd -ms /bin/bash appuser
|
9 |
+
RUN usermod -aG sudo appuser
|
10 |
+
RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
11 |
|
12 |
+
USER appuser
|
13 |
|
14 |
+
WORKDIR /app
|
15 |
+
RUN echo $DRIVE_CODE
|
16 |
+
RUN sudo chmod -R 777 /app
|
17 |
+
RUN python3 -m venv venv
|
18 |
+
RUN /bin/bash -c "source venv/bin/activate"
|
19 |
+
CMD [ "venv/bin/python","main.py"]
|