Files
pylibmeshctrl/tests/environment/client.dockerfile
Josiah Baldwin 12a3040f89 Reapply "Feat/run console commands"
This reverts commit 4cda54ab60.
2025-09-27 14:48:55 -07:00

18 lines
453 B
Docker

FROM python:3.13
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"]