Spaces:
Runtime error
Runtime error
camphong24032002
commited on
Commit
•
903d71a
1
Parent(s):
0f6cb10
Add application file
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y \
|
4 |
+
libgl1-mesa-glx \
|
5 |
+
&& rm -rf /var/lib/apt/lists/*
|
6 |
+
|
7 |
+
WORKDIR /code
|
8 |
+
|
9 |
+
COPY ./requirements.txt /code/requirements.txt
|
10 |
+
|
11 |
+
RUN pip install --upgrade pip
|
12 |
+
|
13 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
+
|
15 |
+
COPY . .
|
16 |
+
|
17 |
+
RUN chown -R 1000:1000 /code
|
18 |
+
|
19 |
+
USER 1000
|
20 |
+
|
21 |
+
CMD ["python", "app.py"]
|