-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c951fd2
commit 456f096
Showing
2 changed files
with
27 additions
and
11 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,17 +1,26 @@ | ||
FROM python:3.11-slim as base | ||
|
||
RUN apt-get update && apt-get install -y git build-essential | ||
RUN pip install poetry | ||
RUN pip install sentence_transformers==2.2.2 | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends git build-essential \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY pyproject.toml ./ | ||
RUN poetry export -f requirements.txt --without-hashes -o requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN pip install --no-cache-dir poetry \ | ||
&& poetry export -f requirements.txt --without-hashes -o requirements.txt \ | ||
&& pip install --no-cache-dir -r requirements.txt | ||
|
||
FROM base as final | ||
|
||
COPY sweepai /app/sweepai | ||
EXPOSE 8000 | ||
|
||
EXPOSE 8000 | ||
CMD ["uvicorn", "sweepai.api:app", "--host", "0.0.0.0", "--port", "8000"] | ||
LABEL org.opencontainers.image.description "Backend for Sweep, an AI-powered junior developer" | ||
|
||
LABEL org.opencontainers.image.description="Backend for Sweep, an AI-powered junior developer" | ||
LABEL org.opencontainers.image.source="https://github.com/sweepai/sweep" |
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