generated from Grigo/AndroidTemplate
19 lines
363 B
Docker
19 lines
363 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
LORATESTER_HOST=0.0.0.0 \
|
|
LORATESTER_PORT=7634 \
|
|
LORATESTER_DB=/data/loratester.db
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 7634
|
|
|
|
CMD ["uvicorn", "fastapi_app:app", "--host", "0.0.0.0", "--port", "7634"]
|