Spaces:
Runtime error
Runtime error
FROM docker.io/jackrio/bae_repo:v4 | |
USER root | |
RUN useradd -m -u 1000 dockeruser | |
USER dockeruser | |
# Set home to the user's home directory | |
ENV HOME=/home/dockeruser \ | |
PATH=/home/dockeruser/.local/bin:$PATH | |
# Set the working directory to the user's home directory | |
WORKDIR $HOME/app | |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user | |
COPY --chown=dockeruser . $HOME/app | |
EXPOSE 8080 | |
CMD ["python", "predict.py"] | |