Spaces:
Runtime error
Runtime error
File size: 477 Bytes
1db8527 b4a00f9 1c83a92 b4a00f9 1c83a92 b4a00f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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"] |