Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ WORKDIR /code
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
-
# Install system dependencies for OpenCV
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
libgl1 \
|
| 10 |
libglib2.0-0 \
|
|
@@ -23,4 +23,8 @@ WORKDIR $HOME/app
|
|
| 23 |
|
| 24 |
COPY --chown=user . $HOME/app
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
CMD ["python", "app.py"]
|
|
|
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
+
# Install system dependencies for OpenCV
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
libgl1 \
|
| 10 |
libglib2.0-0 \
|
|
|
|
| 23 |
|
| 24 |
COPY --chown=user . $HOME/app
|
| 25 |
|
| 26 |
+
# Ensure configs directory exists and copy stable-diffusion-models.txt
|
| 27 |
+
RUN mkdir -p $HOME/configs
|
| 28 |
+
COPY --chown=user ./configs/stable-diffusion-models.txt $HOME/configs/stable-diffusion-models.txt
|
| 29 |
+
|
| 30 |
CMD ["python", "app.py"]
|