17 lines
307 B
Docker
17 lines
307 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt \
|
|
&& useradd --system --no-create-home converter
|
|
|
|
COPY app.py ./
|
|
USER converter
|
|
|
|
EXPOSE 8090
|
|
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]
|