radames zq50 commited on
Commit
d5da0c7
1 Parent(s): 0b3bf70

Correct the expansion of $USE_PERSISTENT_DATA in CMD (#4)

Browse files

- Correct the expansion of $USE_PERSISTENT_DATA in CMD (d11c54d9f748cd4bb40311f7b5c7c7b42612a099)


Co-authored-by: zq50 <zq50@users.noreply.huggingface.co>

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -110,7 +110,7 @@ RUN echo "Downloading checkpoints..." && \
110
  # wget -c https://huggingface.co/sberbank-ai/Real-ESRGAN/resolve/main/RealESRGAN_x4.pth -P ./models/upscale_models/ && \
111
  echo "Done"
112
 
113
- CMD ["python", "main.py", "--listen", "0.0.0.0", "--port", "7860", "--output-directory", "${USE_PERSISTENT_DATA:+/data/}"]
114
 
115
 
116
 
 
110
  # wget -c https://huggingface.co/sberbank-ai/Real-ESRGAN/resolve/main/RealESRGAN_x4.pth -P ./models/upscale_models/ && \
111
  echo "Done"
112
 
113
+ CMD python main.py --listen 0.0.0.0 --port 7860 ${USE_PERSISTENT_DATA:+--output-directory /data/}
114
 
115
 
116