Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
FROM python:3.10.12
|
| 2 |
# WORKDIR /code
|
| 3 |
|
|
@@ -23,5 +24,17 @@ RUN python3 -m venv fooocus_env
|
|
| 23 |
# RUN source fooocus_env/bin/activate
|
| 24 |
RUN pip install -r requirements_versions.txt
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# RUN source fooocus_env/bin/activate
|
| 27 |
RUN python entry_with_update.py --listen --port 7860 --always-cpu --share
|
|
|
|
| 1 |
+
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
|
| 2 |
FROM python:3.10.12
|
| 3 |
# WORKDIR /code
|
| 4 |
|
|
|
|
| 24 |
# RUN source fooocus_env/bin/activate
|
| 25 |
RUN pip install -r requirements_versions.txt
|
| 26 |
|
| 27 |
+
|
| 28 |
+
ENV HOME=/home/user \
|
| 29 |
+
PATH=/home/user/.local/bin:$PATH \
|
| 30 |
+
PYTHONPATH=$HOME/app \
|
| 31 |
+
PYTHONUNBUFFERED=1 \
|
| 32 |
+
GRADIO_ALLOW_FLAGGING=never \
|
| 33 |
+
GRADIO_NUM_PORTS=1 \
|
| 34 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 35 |
+
GRADIO_SERVER_PORT=7860 \
|
| 36 |
+
GRADIO_THEME=huggingface \
|
| 37 |
+
SYSTEM=spaces
|
| 38 |
+
|
| 39 |
# RUN source fooocus_env/bin/activate
|
| 40 |
RUN python entry_with_update.py --listen --port 7860 --always-cpu --share
|