update files, add new workflow parts, add version management to pyproject file
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,5 +1,5 @@
|
||||
# Use the official Python image as the base image
|
||||
FROM python:3.11-slim
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
@@ -7,13 +7,14 @@ WORKDIR /app
|
||||
# Copy the application files into the container
|
||||
COPY . /app
|
||||
|
||||
# Install Poetry for dependency management
|
||||
RUN pip install --no-cache-dir uv
|
||||
RUN uv sync --locked --all-extras --dev --deploy
|
||||
|
||||
# Install dependencies with an external pip index
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt \
|
||||
--extra-index-url https://git.theprivateserver.de/api/packages/KomSuite/pypi/simple/
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 5001
|
||||
|
||||
# Set the default command to run the application using uvicorn
|
||||
CMD ["uv", "run", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "5001"]
|
||||
# Set the default command to run the application using hypercorn
|
||||
# run main.py using uv run python
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user