update files
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -7,11 +7,13 @@ WORKDIR /app
|
||||
# Copy the application files into the container
|
||||
COPY . /app
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Install Poetry for dependency management
|
||||
RUN pip install --no-cache-dir uv
|
||||
RUN uv sync --locked --all-extras --dev --deploy
|
||||
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 5001
|
||||
|
||||
# Set the default command to run the application
|
||||
CMD ["python", "src/app.py"]
|
||||
# Set the default command to run the application using uvicorn
|
||||
CMD ["uv", "run", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "5001"]
|
||||
|
||||
Reference in New Issue
Block a user