Skip to content

Commit bcd766e

Browse files
committed
wip
1 parent 1ca8433 commit bcd766e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ RUN apt-get update && \
55
apt-get install -y git git-lfs && \
66
git lfs install
77

8-
# Hugging Face auth for private model clone
9-
# Expect HF_TOKEN in the build context
8+
# Accept Hugging Face token at build time
109
ARG HF_TOKEN
11-
RUN git config --global credential.helper store && \
12-
echo "machine huggingface.co\nlogin zfir\npassword ${HF_TOKEN}" > ~/.netrc
10+
11+
# Configure Git credentials for Hugging Face
12+
RUN echo -e "machine huggingface.co\nlogin zfir\npassword ${HF_TOKEN}" > /root/.netrc
1313

1414
WORKDIR /code
1515

16-
# Install Python deps
16+
# Install Python dependencies
1717
COPY ./requirements.txt /code/requirements.txt
1818
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
1919

20-
# Clone model repo
21-
RUN GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/zfir/TypeScriptMate model && \
20+
# Clone the model repo (with authentication)
21+
RUN git clone https://huggingface.co/zfir/TypeScriptMate model && \
2222
cd model && git lfs pull
2323

24-
# Add your FastAPI app
24+
# Add FastAPI app
2525
COPY ./app.py /code/app.py
2626

27-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
27+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)