File size: 369 Bytes
87a0ffb
e2b74e4
b566f05
 
 
e2b74e4
b566f05
e2b74e4
dc26e83
72ebb4d
48fe02f
e2b74e4
ef47f04
 
459ccc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10.16-slim

RUN adduser --disabled-password --gecos '' appuser

WORKDIR /app

COPY . .

RUN mkdir -p /app/log /app/static/upload && chown -R appuser:appuser /app/log && chmod -R 755 /app/log /app/static/upload

RUN pip install --upgrade -r requirements.txt

USER appuser

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--access-log"]