Skip to content

Commit

Permalink
Fix git lfs quota issue
Browse files Browse the repository at this point in the history
  • Loading branch information
acmo0 committed May 31, 2024
1 parent 2522d62 commit d519f75
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ COPY . .

RUN wget -q -O app/models/models_weight/ld-model.ckpt https://ommer-lab.com/files/latent-diffusion/nitro/txt2img-f8-large/model.ckpt

RUN mkdir repos
WORKDIR repos

RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt install git-lfs && git lfs install && git clone https://github.com/Dilydigre/ai.git

WORKDIR ../

RUN cp repos/ai/app/models/models_weight/modele1.ckpt app/models/models_weight/modele1.ckpt && rm -rf repos
RUN wget --user-agent Mozilla/4.0 'https://download.wetransfer.com/eugv/cd55cf1c3cc108046f4123681309a49a20240531174839/9223d435abb211117fc4d17b5e4bb1db1ec5a149/modele1.ckpt?cf=y&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImRlZmF1bHQifQ.eyJleHAiOjE3MTcxNzgzNjQsImlhdCI6MTcxNzE3Nzc2NCwiZG93bmxvYWRfaWQiOiJiYjU5MGJkNS1iNWFiLTQ5ZjMtYTdiYS03ZGM2MTY0MjdmYzYiLCJzdG9yYWdlX3NlcnZpY2UiOiJzdG9ybSJ9.bgA4UataZo6pbM3QsydF0qozn017VwNbDVH45WbE2yc' -O models/models_weight/modele1.ckpt

EXPOSE 5000

CMD ["uvicorn", "app.main:app", "--host","0.0.0.0", "--port", "5000"]
CMD ["uvicorn", "app.main:app", "--host","0.0.0.0", "--port", "5000"]

0 comments on commit d519f75

Please sign in to comment.