Spaces:
Runtime error
Runtime error
Commit ·
cbcbc92
1
Parent(s): 0695520
fixed
Browse files- .dockerignore +16 -0
- server/Dockerfile → Dockerfile +1 -1
- README.md +7 -0
.dockerignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**
|
| 2 |
+
!.dockerignore
|
| 3 |
+
!README.md
|
| 4 |
+
!__init__.py
|
| 5 |
+
!client.py
|
| 6 |
+
!compat.py
|
| 7 |
+
!inference.py
|
| 8 |
+
!models.py
|
| 9 |
+
!openenv.yaml
|
| 10 |
+
!pyproject.toml
|
| 11 |
+
!server/
|
| 12 |
+
!server/**
|
| 13 |
+
!tasks/
|
| 14 |
+
!tasks/**
|
| 15 |
+
!graders/
|
| 16 |
+
!graders/**
|
server/Dockerfile → Dockerfile
RENAMED
|
@@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
COPY pyproject.toml README.md openenv.yaml __init__.py client.py models.py inference.py /app/
|
| 10 |
COPY server /app/server
|
| 11 |
COPY tasks /app/tasks
|
| 12 |
COPY graders /app/graders
|
|
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
COPY pyproject.toml README.md openenv.yaml __init__.py client.py compat.py models.py inference.py /app/
|
| 10 |
COPY server /app/server
|
| 11 |
COPY tasks /app/tasks
|
| 12 |
COPY graders /app/graders
|
README.md
CHANGED
|
@@ -102,10 +102,17 @@ openenv validate
|
|
| 102 |
The Docker image no longer depends on `ghcr.io/meta-pytorch/openenv-base:latest`, which removes the TLS handshake failure from the original build path.
|
| 103 |
|
| 104 |
```bash
|
|
|
|
| 105 |
docker build -t python-code-review-env -f server/Dockerfile .
|
| 106 |
docker run --rm -p 8000:8000 python-code-review-env
|
| 107 |
```
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
Expected health check:
|
| 110 |
|
| 111 |
```bash
|
|
|
|
| 102 |
The Docker image no longer depends on `ghcr.io/meta-pytorch/openenv-base:latest`, which removes the TLS handshake failure from the original build path.
|
| 103 |
|
| 104 |
```bash
|
| 105 |
+
# Run from repo root
|
| 106 |
docker build -t python-code-review-env -f server/Dockerfile .
|
| 107 |
docker run --rm -p 8000:8000 python-code-review-env
|
| 108 |
```
|
| 109 |
|
| 110 |
+
If you run the build from inside `server/`, you must point the context at the repo root:
|
| 111 |
+
|
| 112 |
+
```bash
|
| 113 |
+
docker build -t python-code-review-env -f Dockerfile ..
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
Expected health check:
|
| 117 |
|
| 118 |
```bash
|