reuse-surface/Dockerfile

18 lines
351 B
Text
Raw Normal View History

FROM python:3.12-slim
WORKDIR /app
COPY pyproject.toml README.md ./
COPY reuse_surface ./reuse_surface
COPY schemas ./schemas
RUN pip install --no-cache-dir .
ENV REUSE_SURFACE_HUB_HOST=0.0.0.0
ENV REUSE_SURFACE_HUB_PORT=8000
ENV REUSE_SURFACE_HUB_DB=/data/hub.db
ENV REUSE_SURFACE_HUB_CACHE_DIR=/data/cache
EXPOSE 8000
CMD ["reuse-surface-hub"]