File size: 415 Bytes
82f0694
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.11-slim

RUN useradd -m -u 1000 user
WORKDIR /app

COPY --chown=user:user requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

COPY --chown=user:user . /app

USER user
EXPOSE 7860

CMD ["panel", "serve", "panel_app/panel_portal.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin=*", "--num-procs", "1", "--log-level", "info"]