Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files- Dockerfile +4 -8
- server/Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -12,19 +12,15 @@ FROM ghcr.io/meta-pytorch/openenv-base:latest
|
|
| 12 |
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
-
COPY . /app
|
| 16 |
-
|
| 17 |
-
# Install dependencies
|
| 18 |
-
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
|
| 19 |
-
|
| 20 |
-
|
| 21 |
# Copy only what's needed for this environment
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
# Copy README for web interface documentation
|
| 26 |
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
# Health check
|
| 29 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 30 |
CMD curl -f http://localhost:8000/health || exit 1
|
|
|
|
| 12 |
|
| 13 |
WORKDIR /app
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Copy only what's needed for this environment
|
| 16 |
+
COPY . /app
|
|
|
|
| 17 |
|
| 18 |
# Copy README for web interface documentation
|
| 19 |
|
| 20 |
|
| 21 |
+
# Install dependencies
|
| 22 |
+
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
|
| 23 |
+
|
| 24 |
# Health check
|
| 25 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 26 |
CMD curl -f http://localhost:8000/health || exit 1
|
server/Dockerfile
CHANGED
|
@@ -10,17 +10,15 @@
|
|
| 10 |
ARG BASE_IMAGE=openenv-base:latest
|
| 11 |
FROM ${BASE_IMAGE}
|
| 12 |
|
| 13 |
-
# Install dependencies
|
| 14 |
-
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
|
| 15 |
-
|
| 16 |
-
|
| 17 |
# Copy only what's needed for this environment
|
| 18 |
-
COPY
|
| 19 |
-
COPY src/envs/coding_env/ /app/src/envs/coding_env/
|
| 20 |
|
| 21 |
# Copy README for web interface documentation
|
| 22 |
COPY src/envs/coding_env/README.md /app/README.md
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# Health check
|
| 25 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 26 |
CMD curl -f http://localhost:8000/health || exit 1
|
|
|
|
| 10 |
ARG BASE_IMAGE=openenv-base:latest
|
| 11 |
FROM ${BASE_IMAGE}
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Copy only what's needed for this environment
|
| 14 |
+
COPY . /app
|
|
|
|
| 15 |
|
| 16 |
# Copy README for web interface documentation
|
| 17 |
COPY src/envs/coding_env/README.md /app/README.md
|
| 18 |
|
| 19 |
+
# Install dependencies
|
| 20 |
+
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
|
| 21 |
+
|
| 22 |
# Health check
|
| 23 |
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
| 24 |
CMD curl -f http://localhost:8000/health || exit 1
|