hf-chemcrow / Dockerfile
James Wade
initial commit chemcrow
732f451
raw
history blame contribute delete
477 Bytes
FROM python:3.10
# Create a non-root user to run the application
RUN adduser --disabled-password --gecos "" appuser
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Change the ownership of the /code directory to appuser
RUN chown -R appuser:appuser /code
# Switch to the appuser user
USER appuser
EXPOSE 7860
CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]