Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN pwd
|
| 4 |
RUN ls
|
| 5 |
RUN pip install -r requirements.txt
|
| 6 |
-
|
| 7 |
-
# VOLUME /data
|
| 8 |
EXPOSE 23333
|
| 9 |
CMD ["python", "-m", "apis.chat_api"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
+
RUN pwd
|
| 3 |
+
WORKDIR $HOME/app
|
| 4 |
+
COPY . .
|
| 5 |
+
RUN mkdir -p /.cache && chmod -R 777 /.cache
|
| 6 |
RUN pwd
|
| 7 |
RUN ls
|
| 8 |
RUN pip install -r requirements.txt
|
| 9 |
+
VOLUME /data
|
|
|
|
| 10 |
EXPOSE 23333
|
| 11 |
CMD ["python", "-m", "apis.chat_api"]
|