-
Notifications
You must be signed in to change notification settings - Fork 58
/
Dockerfile
27 lines (19 loc) · 890 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM atdr.meo.ws/archiveteam/grab-base
LABEL version="20241119.01"
RUN apt-get update \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m warrior --uid 1000 \
&& echo "warrior ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV PATH="/home/warrior/.local/bin:${PATH}"
WORKDIR /home/warrior
USER 1000
RUN mkdir data projects \
&& ln -fs /usr/local/bin/wget-lua /home/warrior/data/wget-at
COPY --from=atdr.meo.ws/archiveteam/grab-base:gnutls /usr/local/bin/wget-lua /home/warrior/data/wget-at-gnutls
RUN git clone --depth 1 --recurse-submodules https://github.com/ArchiveTeam/warrior-code2.git
COPY --chown=warrior:warrior start.py .
EXPOSE 8001
STOPSIGNAL SIGINT
ENTRYPOINT [ "python", "start.py" ]
HEALTHCHECK --interval=5s --timeout=3s CMD /home/warrior/data/wget-at -nv -t1 'http://localhost:8001/index.html' -O /dev/null || exit 1