File size: 394 Bytes
73e04de
 
 
64b7ebb
73e04de
 
 
1fb51d0
73e04de
 
 
 
 
 
 
81e9053
1fb51d0
89908d3
4333cf5
6d8f72c
89908d3
4333cf5
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.9

# WORKDIR /code
WORKDIR /app

COPY ./requirements.txt /app/requirements.txt

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

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

COPY --chown=user . /app
RUN ls -R


CMD ["/app"]

CMD ["uvicorn", "app:app", "--reload", "--host", "0.0.0.0", "--port", "8000"]