File size: 457 Bytes
5564ecb
e2b74e4
b566f05
 
ef47f04
e5300c2
b566f05
ef47f04
b566f05
ef47f04
b566f05
e2b74e4
b566f05
e2b74e4
b566f05
e2b74e4
 
 
ef47f04
 
0fa3b38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10.4

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

RUN mkdir -p /log && chown appuser:appuser /log && chmod 755 /log

ENV API_BASE_URL=https://api-dev.futabus.vn

ENV API_ACCESS_TOKEN=https://api-dev.futabus.vn/identity/api/token/anonymous-token

ENV ENVIRONMENT=dev

WORKDIR /app

COPY . .

RUN pip install --no-cache-dir --upgrade -r /requirements.txt

USER appuser

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