File size: 327 Bytes
8b61b70
 
 
 
 
 
1295b7e
 
fc775cc
1295b7e
8b61b70
 
fc775cc
5fea575
cfb9a50
fc775cc
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

EXPOSE 7860

USER root
RUN mkdir -p /.cache
RUN chmod 777 /.cache
RUN chmod 777 /code/*
USER user

CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]