-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Hi, Due to conflicts in local package versions with existing projects, unexpected behavior occurred with the local setup. Therefore, I decided to use Docker from the latest commit.
Please let me know if there is any additional information you would like me to provide. Thank you.
System Version: macOS 14.4
Chip: Apple M1 Pro
Memory: 16 GB
Log
user@192 selfie % DOCKER_BUILDKIT=0 docker build --target selfie-arm64 -t selfie:arm64 .
docker run -p 8181:8181 \
--name selfie-arm64 \
-v $(pwd)/data:/selfie/data \
-v $(pwd)/selfie:/selfie/selfie \
-v $(pwd)/selfie-ui:/selfie/selfie-ui \
-v $HOME/.cache/huggingface:/root/.cache/huggingface \
selfie:arm64
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 10.36MB
Step 1/29 : FROM node:18.19-alpine3.18 AS selfie-ui
---> 41ad1edd39ed
Step 2/29 : WORKDIR /selfie
---> Using cache
---> 849eda0c1e62
Step 3/29 : COPY selfie-ui/package.json selfie-ui/yarn.lock ./
---> Using cache
---> b1d7e1c6b981
Step 4/29 : RUN yarn install --frozen-lockfile --non-interactive
---> Using cache
---> a6ddc7272287
Step 5/29 : COPY selfie-ui/ .
---> Using cache
---> 0b60af651610
Step 6/29 : RUN yarn run build
---> Using cache
---> cc1567a32e0d
Step 7/29 : FROM python:3.11 as selfie-base
---> 3a302c046200
Step 8/29 : ENV PYTHONDONTWRITEBYTECODE 1
---> Using cache
---> e7b04d3c61bc
Step 9/29 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> 08840518de35
Step 10/29 : ENV PIP_NO_CACHE_DIR=1
---> Using cache
---> fb9820d52ca0
Step 11/29 : WORKDIR /selfie
---> Using cache
---> 530a11304303
Step 12/29 : COPY . .
---> Using cache
---> c3e576595af0
Step 13/29 : COPY --from=selfie-ui /selfie/out/ ./selfie-ui/out
---> Using cache
---> ddc9cfe500cb
Step 14/29 : RUN pip install poetry --no-cache-dir
---> Using cache
---> a479a6df0a89
Step 15/29 : RUN poetry config virtualenvs.create false
---> Using cache
---> f284461f89e0
Step 16/29 : RUN poetry install --no-interaction --no-ansi
---> Using cache
---> 158869c414b2
Step 17/29 : EXPOSE 8181
---> Using cache
---> a754619b8236
Step 18/29 : FROM selfie-base as selfie-cpu
---> a754619b8236
Step 19/29 : CMD ["python", "-m", "selfie"]
---> Using cache
---> 32056484b7e6
Step 20/29 : FROM nvcr.io/nvidia/pytorch:23.10-py3 as selfie-gpu
---> b7cf5f7ecb71
Step 21/29 : COPY --from=selfie-base /selfie /selfie
---> Using cache
---> 9c08f725664d
Step 22/29 : WORKDIR /selfie
---> Using cache
---> 4ec1bbea2345
Step 23/29 : RUN pip install poetry --no-cache-dir
---> Using cache
---> 20f340333b3a
Step 24/29 : ENV PATH="/root/.local/bin:$PATH"
---> Using cache
---> b75fec1bc993
Step 25/29 : RUN poetry install --no-interaction --no-ansi
---> Using cache
---> c706d2228809
Step 26/29 : RUN bash /selfie/scripts/llama-cpp-python-cublas.sh
---> Using cache
---> 89c3fa68c5dc
Step 27/29 : CMD ["poetry", "run", "python", "-m", "selfie", "--gpu", "--verbose"]
---> Using cache
---> 20937a99d4a1
Step 28/29 : FROM selfie-base as selfie-arm64
---> a754619b8236
Step 29/29 : CMD if [ "$(uname -m)" = "arm64" ]; then echo "Running with GPU support"; python -m selfie --gpu; else echo "Running without GPU support"; python -m selfie; fi
---> Using cache
---> 6060df7224a9
Successfully built 6060df7224a9
Successfully tagged selfie:arm64
What's Next?
View a summary of image vulnerabilities and recommendations → docker scout quickview
Running without GPU support
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/selfie/selfie/__main__.py", line 95, in <module>
main()
File "/selfie/selfie/__main__.py", line 80, in main
app = get_configured_app(shareable=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/selfie/selfie/__main__.py", line 68, in get_configured_app
from selfie.api import app
File "/selfie/selfie/api/__init__.py", line 88, in <module>
app.mount("/static", StaticFiles(directory=static_files_dir), name="static")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/staticfiles.py", line 59, in __init__
raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory '/selfie/selfie/api/../web' does not exist
volod-vana
Metadata
Metadata
Assignees
Labels
No labels