Sj8287/Sentiment_Classification
0
1FROM python:3.9.162 3WORKDIR /code4 5COPY ./requirements.txt /code/requirements.txt6 7RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt8 9# Set up a new user named "user" with user ID 100010RUN useradd -m -u 1000 user11 12# Switch to the "user" user13USER user14 15# 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/code21 22COPY . ./code23 24# Copy the current directory contents into the container at $HOME/app setting the owner to the user25COPY --chown=user . $HOME/code26 27EXPOSE 500028 29CMD ["python", "/home/user/code/run.py"]