Spaces:
Sleeping
Sleeping
Shivam Garg commited on
Commit ·
ce724b5
1
Parent(s): ed9e4e4
some
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -24,10 +24,13 @@ RUN pip install uvicorn fastapi
|
|
| 24 |
COPY src/core/ /app/src/core/
|
| 25 |
COPY src/envs/textarena_env/ /app/src/envs/textarena_env/
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Health check
|
| 28 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 29 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 30 |
|
| 31 |
# Run the FastAPI server
|
| 32 |
-
CMD ["uvicorn", "envs.textarena_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 33 |
ENV ENABLE_WEB_INTERFACE=true
|
|
|
|
| 24 |
COPY src/core/ /app/src/core/
|
| 25 |
COPY src/envs/textarena_env/ /app/src/envs/textarena_env/
|
| 26 |
|
| 27 |
+
# Set working directory
|
| 28 |
+
WORKDIR /app/src
|
| 29 |
+
|
| 30 |
# Health check
|
| 31 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 32 |
CMD curl -f http://localhost:8000/health || exit 1
|
| 33 |
|
| 34 |
# Run the FastAPI server
|
| 35 |
+
CMD ["python", "-m", "uvicorn", "envs.textarena_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 36 |
ENV ENABLE_WEB_INTERFACE=true
|