File size: 664 Bytes
e2ce547 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DATA_DIR=/data \
HEALTH_HOST=0.0.0.0 \
PORT=8080
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates tini \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml README.md ./
COPY polymarket_collector ./polymarket_collector
COPY scripts ./scripts
COPY deploy/container-entrypoint.sh ./deploy/container-entrypoint.sh
RUN pip install --no-cache-dir . \
&& chmod +x /app/scripts/polymarket-backup /app/deploy/container-entrypoint.sh
EXPOSE 8080
ENTRYPOINT ["/usr/bin/tini", "--", "/app/deploy/container-entrypoint.sh"]
|