update
Browse files- Dockerfile +3 -13
Dockerfile
CHANGED
@@ -37,13 +37,12 @@ RUN pip install --upgrade pip \
|
|
37 |
# Create a non-root user
|
38 |
RUN useradd -m -u 1000 appuser
|
39 |
|
|
|
|
|
|
|
40 |
# Set working directory
|
41 |
WORKDIR /home/appuser/app
|
42 |
|
43 |
-
# Copy dependency files and install dependencies
|
44 |
-
COPY --chown=appuser pyproject.toml uv.lock README.md ./
|
45 |
-
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
|
46 |
-
|
47 |
RUN --mount=type=ssh uv sync --no-group dev
|
48 |
RUN --mount=type=ssh uv sync --frozen --no-cache \
|
49 |
&& chown -R appuser:appuser /home/appuser/app/.venv \
|
@@ -58,15 +57,6 @@ RUN chmod -R 777 /tmp
|
|
58 |
RUN mkdir -p ./ckpts/unidisc_interleaved
|
59 |
RUN HF_HUB_ENABLE_HF_TRANSFER=1 uvx --with hf_transfer --from huggingface_hub huggingface-cli download aswerdlow/unidisc_interleaved --local-dir ./ckpts/unidisc_interleaved --revision 2b344ca856bd108b52a2d022a3463dace131249f
|
60 |
|
61 |
-
# Copy application code
|
62 |
-
COPY --chown=appuser demo demo
|
63 |
-
COPY --chown=appuser unidisc unidisc
|
64 |
-
COPY --chown=appuser models models
|
65 |
-
COPY --chown=appuser configs configs
|
66 |
-
COPY --chown=appuser third_party third_party
|
67 |
-
COPY --chown=appuser ./__* ./
|
68 |
-
COPY --chown=appuser ./*.py ./
|
69 |
-
|
70 |
RUN ln -s ckpts/unidisc_interleaved/vq_ds16_t2i.pt ckpts/vq_ds16_t2i.pt
|
71 |
RUN chown -h appuser:appuser ckpts/vq_ds16_t2i.pt
|
72 |
|
|
|
37 |
# Create a non-root user
|
38 |
RUN useradd -m -u 1000 appuser
|
39 |
|
40 |
+
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
|
41 |
+
RUN git clone -b docker_wip https://github.com/alexanderswerdlow/unidisc.git /home/appuser/app
|
42 |
+
|
43 |
# Set working directory
|
44 |
WORKDIR /home/appuser/app
|
45 |
|
|
|
|
|
|
|
|
|
46 |
RUN --mount=type=ssh uv sync --no-group dev
|
47 |
RUN --mount=type=ssh uv sync --frozen --no-cache \
|
48 |
&& chown -R appuser:appuser /home/appuser/app/.venv \
|
|
|
57 |
RUN mkdir -p ./ckpts/unidisc_interleaved
|
58 |
RUN HF_HUB_ENABLE_HF_TRANSFER=1 uvx --with hf_transfer --from huggingface_hub huggingface-cli download aswerdlow/unidisc_interleaved --local-dir ./ckpts/unidisc_interleaved --revision 2b344ca856bd108b52a2d022a3463dace131249f
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
RUN ln -s ckpts/unidisc_interleaved/vq_ds16_t2i.pt ckpts/vq_ds16_t2i.pt
|
61 |
RUN chown -h appuser:appuser ckpts/vq_ds16_t2i.pt
|
62 |
|