|
|
@ -4,12 +4,11 @@ FROM python:3.8-slim
|
|
|
|
ARG CRYPTOGRAPHY_DONT_BUILD_RUST=1
|
|
|
|
ARG CRYPTOGRAPHY_DONT_BUILD_RUST=1
|
|
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
RUN apt-get update && apt-get install -y libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev rustc g++ --no-install-recommends && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y libssl-dev libffi-dev gcc libc-dev libxslt-dev zlib1g-dev rustc g++ --no-install-recommends && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
|
|
# Update pip, install requirements, remove rust and dev packages that are no longer needed.
|
|
|
|
# Update pip, install requirements, remove rust and dev packages that are no longer needed.
|
|
|
|
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r /tmp/requirements.txt && apt-get remove rustc *-dev --purge -y
|
|
|
|
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r /tmp/requirements.txt && apt-get remove rustc *-dev --purge -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN [ ! -d "/app" ] && mkdir /app
|
|
|
|
RUN [ ! -d "/app" ] && mkdir /app
|
|
|
|
RUN [ ! -d "/datastore" ] && mkdir /datastore
|
|
|
|
RUN [ ! -d "/datastore" ] && mkdir /datastore
|
|
|
|
|
|
|
|
|
|
|
@ -24,11 +23,6 @@ WORKDIR /app
|
|
|
|
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
|
|
|
|
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
|
|
|
|
# Attempt to store the triggered commit
|
|
|
|
|
|
|
|
ARG SOURCE_COMMIT
|
|
|
|
|
|
|
|
ARG SOURCE_BRANCH
|
|
|
|
|
|
|
|
RUN echo "commit: $SOURCE_COMMIT branch: $SOURCE_BRANCH" >/source.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CMD [ "python", "./changedetection.py" , "-d", "/datastore"]
|
|
|
|
CMD [ "python", "./changedetection.py" , "-d", "/datastore"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|