Spaces:
Paused
Paused
JamesBond531
commited on
Commit
•
2721600
1
Parent(s):
e7f5d94
Update Dockerfile
Browse files- Dockerfile +12 -7
Dockerfile
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
-
FROM python:3.10
|
2 |
|
3 |
RUN apt update && apt upgrade -y
|
4 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY requirements.txt /requirements.txt
|
|
|
6 |
|
7 |
-
RUN cd /
|
8 |
RUN pip3 install -U pip && pip3 install -U -r requirements.txt
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
CMD ["
|
|
|
1 |
+
FROM python:3.10
|
2 |
|
3 |
RUN apt update && apt upgrade -y
|
4 |
+
RUN useradd -m -u 1000 user
|
5 |
+
USER user
|
6 |
+
ENV HOME=/home/user \
|
7 |
+
PATH=/home/user/.local/bin:$PATH
|
8 |
+
WORKDIR $HOME/app
|
9 |
+
RUN pip install --no-cache-dir --upgrade pip
|
10 |
COPY requirements.txt /requirements.txt
|
11 |
+
COPY --chown=user . $HOME/app
|
12 |
|
|
|
13 |
RUN pip3 install -U pip && pip3 install -U -r requirements.txt
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
CMD ["python3", "bot.py"]
|