changed dockerfile
Browse files- S2FApp/Dockerfile +2 -3
S2FApp/Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ WORKDIR /app
|
|
| 8 |
|
| 9 |
# Install system deps for OpenCV
|
| 10 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 11 |
-
libgl1
|
| 12 |
libglib2.0-0 \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
|
@@ -26,8 +26,7 @@ COPY --chown=user:user app.py predictor.py download_ckp.py ./
|
|
| 26 |
COPY --chown=user:user models/ models/
|
| 27 |
COPY --chown=user:user utils/ utils/
|
| 28 |
COPY --chown=user:user config/ config/
|
| 29 |
-
|
| 30 |
-
RUN mkdir -p ckp && chown user:user ckp
|
| 31 |
|
| 32 |
# Download checkpoints from Hugging Face if ckp is empty (for Space deployment)
|
| 33 |
# Set HF_MODEL_REPO env to your model repo, e.g. kaveh/Shape2Force
|
|
|
|
| 8 |
|
| 9 |
# Install system deps for OpenCV
|
| 10 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 11 |
+
libgl1 \
|
| 12 |
libglib2.0-0 \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
|
|
|
| 26 |
COPY --chown=user:user models/ models/
|
| 27 |
COPY --chown=user:user utils/ utils/
|
| 28 |
COPY --chown=user:user config/ config/
|
| 29 |
+
RUN mkdir -p ckp sample && chown -R user:user ckp sample
|
|
|
|
| 30 |
|
| 31 |
# Download checkpoints from Hugging Face if ckp is empty (for Space deployment)
|
| 32 |
# Set HF_MODEL_REPO env to your model repo, e.g. kaveh/Shape2Force
|