SOCEnv / Dockerfile
netha01's picture
Fix ASGI app import path in Dockerfile and use pyproject.toml
fc2a853
Raw History Blame Contribute Delete
401 Bytes
# Dockerfile - AI SOC Gym
# Exposes the environment as a FastAPI server on port 7860
FROM python:3.11-slim
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user . /app
RUN pip install --no-cache-dir --upgrade .
# Port 7860 is required by HuggingFace Spaces
EXPOSE 7860
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]