carpelan commited on
Commit
b636aff
·
1 Parent(s): 74de685

revert settings in dockerfile

Browse files
Files changed (1) hide show
  1. .docker/dockerfile +2 -2
.docker/dockerfile CHANGED
@@ -8,14 +8,13 @@ ENV PYTHONUNBUFFERED=1 \
8
  GRADIO_NUM_PORTS=1 \
9
  GRADIO_SERVER_NAME=0.0.0.0 \
10
  GRADIO_THEME=huggingface \
11
- GRADIO_SERVER_PORT=7860 \
12
- GRADIO_SSR_MODE="True" \
13
  SYSTEM=spaces \
14
  AM_I_IN_A_DOCKER_CONTAINER=Yes \
15
  PYTHONPATH=/home/appuser/app \
16
  HF_HOME=/home/appuser/.cache \
17
  TORCH_HOME=/home/appuser/.cache \
18
  TMP_DIR=/home/appuser/tmp \
 
19
  NVIDIA_VISIBLE_DEVICES=all \
20
  NVIDIA_DRIVER_CAPABILITIES=compute,utility
21
 
@@ -49,6 +48,7 @@ RUN uv sync --frozen --no-cache \
49
  && chown -R appuser:appuser /home/appuser/app/.venv \
50
  && rm -rf /root/.cache /home/appuser/.cache
51
 
 
52
  # Copy application code
53
  COPY --chown=appuser app app
54
 
 
8
  GRADIO_NUM_PORTS=1 \
9
  GRADIO_SERVER_NAME=0.0.0.0 \
10
  GRADIO_THEME=huggingface \
 
 
11
  SYSTEM=spaces \
12
  AM_I_IN_A_DOCKER_CONTAINER=Yes \
13
  PYTHONPATH=/home/appuser/app \
14
  HF_HOME=/home/appuser/.cache \
15
  TORCH_HOME=/home/appuser/.cache \
16
  TMP_DIR=/home/appuser/tmp \
17
+ TRANSFORMERS_CACHE=/home/appuser/.cache/transformers \
18
  NVIDIA_VISIBLE_DEVICES=all \
19
  NVIDIA_DRIVER_CAPABILITIES=compute,utility
20
 
 
48
  && chown -R appuser:appuser /home/appuser/app/.venv \
49
  && rm -rf /root/.cache /home/appuser/.cache
50
 
51
+
52
  # Copy application code
53
  COPY --chown=appuser app app
54