-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: promp selector and prompted skill dockerfiles (#446)
- Loading branch information
1 parent
1acc382
commit 198f055
Showing
2 changed files
with
16 additions
and
19 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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
FROM python:3.8.4 | ||
|
||
ARG SERVICE_PORT | ||
ENV SERVICE_PORT ${SERVICE_PORT} | ||
ARG N_SENTENCES_TO_RETURN | ||
ENV N_SENTENCES_TO_RETURN ${N_SENTENCES_TO_RETURN} | ||
ARG PROMPTS_TO_CONSIDER | ||
ENV PROMPTS_TO_CONSIDER ${PROMPTS_TO_CONSIDER} | ||
|
||
RUN mkdir /src | ||
WORKDIR /src | ||
|
||
COPY annotators/prompt_selector/requirements.txt /src/requirements.txt | ||
RUN pip install -r /src/requirements.txt | ||
RUN pip install --no-cache -r /src/requirements.txt | ||
|
||
COPY ./annotators/prompt_selector/ /src/ | ||
COPY ./common/ /src/common/ | ||
|
||
WORKDIR /src | ||
ARG SERVICE_PORT | ||
ENV SERVICE_PORT ${SERVICE_PORT} | ||
ARG N_SENTENCES_TO_RETURN | ||
ENV N_SENTENCES_TO_RETURN ${N_SENTENCES_TO_RETURN} | ||
ARG PROMPTS_TO_CONSIDER | ||
ENV PROMPTS_TO_CONSIDER ${PROMPTS_TO_CONSIDER} | ||
|
||
CMD gunicorn --workers=1 server:app --bind 0.0.0.0:8000 |
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