first commit
This commit is contained in:
16
backend/Dockerfile
Normal file
16
backend/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl build-essential && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY backend/requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
COPY backend /app
|
||||
RUN mkdir -p /app/storage
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in New Issue
Block a user