File size: 402 Bytes
b413fd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11-slim

WORKDIR /app

RUN pip install --no-cache-dir wandb
RUN useradd --create-home --uid 1000 appuser

COPY --chown=appuser:appuser index.html data.json server.py ./
COPY --chown=appuser:appuser assets ./assets
COPY --chown=appuser:appuser scripts ./scripts

ENV PORT=7860 \
    PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1
EXPOSE 7860

USER appuser

CMD ["python", "server.py"]