Spaces:
Runtime error
Runtime error
Commit
·
da0529e
1
Parent(s):
6c0f64d
Add application file
Browse files- Dockerfile +5 -11
Dockerfile
CHANGED
@@ -1,18 +1,12 @@
|
|
1 |
FROM python:3.9-slim
|
2 |
|
3 |
-
RUN useradd -m -u 1000 user
|
4 |
WORKDIR /app
|
5 |
|
6 |
-
COPY
|
7 |
-
RUN pip install --no-cache-dir
|
8 |
|
9 |
-
COPY
|
10 |
|
11 |
-
|
12 |
|
13 |
-
|
14 |
-
PATH=/home/user/.local/bin:$PATH
|
15 |
-
|
16 |
-
EXPOSE 7860
|
17 |
-
|
18 |
-
CMD ["python", "main.py"]
|
|
|
1 |
FROM python:3.9-slim
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
7 |
|
8 |
+
COPY . .
|
9 |
|
10 |
+
CMD ["python", "main.py"]
|
11 |
|
12 |
+
EXPOSE 7860
|
|
|
|
|
|
|
|
|
|