mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
add agents dockerfile
This commit is contained in:
parent
1d20e2cb97
commit
751e0371d8
4 changed files with 1654 additions and 2 deletions
4
apps/agents/.dockerignore
Normal file
4
apps/agents/.dockerignore
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
.env
|
||||
.env*
|
||||
__pycache__/
|
||||
venv/
|
||||
3
apps/agents/.gitignore
vendored
3
apps/agents/.gitignore
vendored
|
|
@ -30,5 +30,4 @@
|
|||
**/**/*.out
|
||||
*.log
|
||||
**/*.log
|
||||
**/**/*.log
|
||||
*.lock
|
||||
**/**/*.log
|
||||
27
apps/agents/Dockerfile
Normal file
27
apps/agents/Dockerfile
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Use official Python runtime as base image
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set working directory in container
|
||||
WORKDIR /app
|
||||
|
||||
# Install poetry
|
||||
RUN pip install poetry
|
||||
|
||||
# Copy poetry files
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
|
||||
# Configure poetry to not create virtual environment in container
|
||||
RUN poetry config virtualenvs.create false
|
||||
|
||||
# Install dependencies
|
||||
RUN poetry install --no-interaction --no-ansi
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
|
||||
# Set environment variables
|
||||
ENV FLASK_APP=src.app.main
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Command to run Flask development server
|
||||
CMD ["flask", "run", "--host=0.0.0.0", "--port=3002"]
|
||||
1622
apps/agents/poetry.lock
generated
Normal file
1622
apps/agents/poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue