-
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.
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 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,15 +1,25 @@ | ||
# Use a specific Python image | ||
FROM python:3.10.13-slim | ||
|
||
RUN pip install poetry | ||
# Set Poetry environment | ||
RUN pip install poetry \ | ||
&& poetry config virtualenvs.create false | ||
|
||
WORKDIR /vizion | ||
# Set working directory | ||
WORKDIR /app | ||
|
||
COPY . . | ||
# Copy only the necessary files | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
# Install dependencies | ||
RUN poetry install | ||
|
||
RUN poetry config virtualenvs.create false | ||
# Copy the entire source code | ||
COPY ./app /app | ||
|
||
EXPOSE 80 | ||
# Expose the necessary port | ||
EXPOSE 8080 | ||
|
||
# Entrypoint for your application | ||
ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"] | ||
|
||
# ENTRYPOINT ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8030" ]" |