Docker dev and prod, staging refresh, multi-env galleries and operator docs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# retoor <retoor@molodetz.nl>
|
||||
FROM python:3.12-slim
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
COPY pyproject.toml README.md ./
|
||||
COPY molodetz ./molodetz
|
||||
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -e .
|
||||
EXPOSE 8088
|
||||
CMD ["python", "-m", "uvicorn", "molodetz.main:app", "--host", "0.0.0.0", "--port", "8088", "--reload", "--reload-dir", "molodetz"]
|
||||
Reference in New Issue
Block a user