Add microservices, web UI, and replay tooling
Some checks failed
ci / tests (push) Has been cancelled
Some checks failed
ci / tests (push) Has been cancelled
This commit is contained in:
20
Dockerfile.web
Normal file
20
Dockerfile.web
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml README.md /app/
|
||||
COPY catan /app/catan
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade pip \
|
||||
&& pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu torch \
|
||||
&& pip install --no-cache-dir -e .
|
||||
|
||||
ENV CATAN_DATA_DIR=/app/data
|
||||
ENV CATAN_MODELS_DIR=/app/models
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "catan.web.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user