Files
cve_monitor/Dockerfile
Mateusz Gruszczyński bc1b4279de first commit
2026-02-13 12:42:53 +01:00

30 lines
588 B
Docker

FROM python:3.14-alpine
WORKDIR /app
RUN apk add --no-cache \
gcc \
musl-dev \
libffi-dev \
openssl-dev \
sqlite \
curl
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/cve_db /app/logs && \
chmod -R 777 /app/cve_db /app/logs
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
EXPOSE 5000
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:5000/health || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["app"]