KwabenaMufasa/Sepsis_Machine_Learning_API_-_FastAPI
0
1FROM python:3.92 3FROM python:3.94 5WORKDIR /code6 7COPY ./requirements.txt /code/requirements.txt8 9RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt10 11# Set up a new user named "user" with user ID 100012RUN useradd -m -u 1000 user13# Switch to the "user" user14USER user15# Set home to the user's home directory16ENV HOME=/home/user \17 PATH=/home/user/.local/bin:$PATH18 19# Set the working directory to the user's home directory20WORKDIR $HOME/app21 22# Copy the current directory contents into the container at $HOME/app setting the owner to the user23COPY --chown=user . $HOME/app24 25 26 27#COPY . . 28CMD ["python","API_app.py"]