SummaryProject / Dockerfile
EveSa's picture
fix api problem and tokent auth
cd518e1
raw
history blame
446 Bytes
# Dockerfile, Image, Container
FROM python:3.8.10
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
COPY . .
CMD ["uvicorn", "src.api:app", "--host", "0.0.0.0", "--port", "7860"]
#CMD python3 -m uvicorn --app-dir ./src api:app --host 0.0.0.0 --port 3001