-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some modification to push the docker image to azure repository
- Loading branch information
Showing
6 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel | ||
|
||
COPY ./api /api | ||
COPY ./src /api/src | ||
COPY ./models/codebert-bimodal/checkpoint-best-aver/ /api/models | ||
|
||
|
||
WORKDIR /api/ | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 8501 | ||
|
||
ENV API_HOST_PORT=8501 | ||
ENV API_HOST_DOMAIN="0.0.0.0" | ||
ENV RELOAD_CODE="False" | ||
ENV NUMBER_OF_WORKERS=4 | ||
|
||
CMD [ "python", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters