dashboard / Dockerfile
3v324v23's picture
first commit
b413fd8
Raw
History Blame Contribute Delete
402 Bytes
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"]