Spaces:
Sleeping
Sleeping
refactor: configure deployment to use Docker
Browse files- Dockerfile +7 -0
- requirements.txt +0 -0
Dockerfile
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
EXPOSE 7860
|
3 |
+
WORKDIR /code
|
4 |
+
COPY ./requirements.txt /code/requirements.txt
|
5 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
6 |
+
COPY . /code/
|
7 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|