2025-09-27 14:48:55 -07:00
|
|
|
FROM python:3.13
|
2024-11-20 15:23:03 -08:00
|
|
|
WORKDIR /usr/local/app
|
|
|
|
|
|
|
|
|
|
# Install the application dependencies
|
|
|
|
|
# COPY requirements.txt ./
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy in the source code
|
|
|
|
|
COPY scripts/client ./scripts
|
|
|
|
|
RUN pip install --no-cache-dir -r ./scripts/requirements.txt
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
|
|
|
|
# Setup an app user so the container doesn't run as the root user
|
|
|
|
|
RUN useradd app
|
|
|
|
|
USER app
|
|
|
|
|
WORKDIR /usr/local/app/scripts
|
|
|
|
|
|
|
|
|
|
CMD ["python3", "-m", "flask", "--app", "agent_server", "run", "--host=0.0.0.0", "--debug"]
|