Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -2,16 +2,16 @@
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.9
|
5 |
-
|
6 |
# Ortam değişkenlerini ayarlama
|
7 |
ENV YOUR_SECRET_KEY_NAME=huggingface_key
|
8 |
# The two following lines are requirements for the Dev Mode to be functional
|
9 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
10 |
-
|
11 |
WORKDIR /app
|
12 |
|
13 |
-
COPY
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
15 |
|
16 |
-
COPY
|
17 |
-
CMD ["
|
|
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
FROM python:3.9
|
5 |
+
WORKDIR /app
|
6 |
# Ortam değişkenlerini ayarlama
|
7 |
ENV YOUR_SECRET_KEY_NAME=huggingface_key
|
8 |
# The two following lines are requirements for the Dev Mode to be functional
|
9 |
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
|
10 |
+
|
11 |
WORKDIR /app
|
12 |
|
13 |
+
COPY ./requirements.txt requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
15 |
|
16 |
+
COPY . /app
|
17 |
+
CMD ["python", "app.py"]
|