Spaces:
Runtime error
Runtime error
File size: 376 Bytes
4c2f6d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# pull python base image
FROM python:3.10
COPY requirements.txt requirements.txt
# update pip
RUN pip install --upgrade pip
# install dependencies
RUN pip install -r requirements.txt
RUN useradd -m -u 1000 myuser
USER myuser
# copy application files
COPY --chown=myuser . .
# expose port for application
EXPOSE 8001
# start fastapi application
CMD ["python", "app.py"] |