SteveDusty commited on
Commit
dd5f8b8
·
verified ·
1 Parent(s): 8fff16c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -9
Dockerfile CHANGED
@@ -7,16 +7,11 @@ RUN apt-get update && \
7
  apt-get install -y --no-install-recommends git curl && \
8
  rm -rf /var/lib/apt/lists/*
9
 
10
- # Copy environment code
11
- COPY . /app/env
12
-
13
- WORKDIR /app/env
14
 
15
  # Install dependencies via pip using requirements.txt
16
- RUN pip install --no-cache-dir -r server/requirements.txt
17
-
18
- # Set PYTHONPATH so imports work correctly
19
- ENV PYTHONPATH="/app/env:$PYTHONPATH"
20
 
21
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
22
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
@@ -24,4 +19,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
24
  EXPOSE 8000
25
 
26
  ENV ENABLE_WEB_INTERFACE=true
27
- CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
 
7
  apt-get install -y --no-install-recommends git curl && \
8
  rm -rf /var/lib/apt/lists/*
9
 
10
+ # Copy environment code into a proper package directory
11
+ COPY . /app/overflow_env
 
 
12
 
13
  # Install dependencies via pip using requirements.txt
14
+ RUN pip install --no-cache-dir -r /app/overflow_env/server/requirements.txt
 
 
 
15
 
16
  HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
17
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
 
19
  EXPOSE 8000
20
 
21
  ENV ENABLE_WEB_INTERFACE=true
22
+ CMD ["uvicorn", "overflow_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"]