|
|
@@ -5,13 +5,22 @@ ENV TINI_VERSION v0.19.0 |
|
|
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini |
|
|
|
RUN chmod +x /tini |
|
|
|
|
|
|
|
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y \ |
|
|
|
build-essential dpkg-dev devscripts cmake git python3 python3-dev python3-pip \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
# Create data mount |
|
|
|
RUN mkdir -p /data |
|
|
|
RUN chown nobody:nogroup /data |
|
|
|
|
|
|
|
WORKDIR / |
|
|
|
|
|
|
|
COPY mover.sh /mover.sh |
|
|
|
COPY entrypoint.sh /entrypoint.sh |
|
|
|
COPY uploader.sh /uploader.sh |
|
|
|
ADD https://raw.githubusercontent.com/ArchiveTeam/ArchiveBot/master/pipeline/requirements.txt /requirements.txt |
|
|
|
ADD https://raw.githubusercontent.com/ArchiveTeam/ArchiveBot/master/uploader/uploader.py /uploader.py |
|
|
|
|
|
|
|
WORKDIR /tmp |
|
|
|
RUN pip3 install -r /requirements.txt |
|
|
|
|
|
|
|
ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ] |