rowboat/apps/agents/Dockerfile

29 lines
621 B
Text
Raw Normal View History

2025-01-14 11:37:27 +05:30
# 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
2025-01-15 20:11:25 +05:30
ENV PYTHONPATH=/app
2025-01-14 11:37:27 +05:30
# Command to run Flask development server
2025-01-14 12:28:44 +05:30
CMD ["flask", "run", "--host=0.0.0.0", "--port=3001"]