mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 05:38:29 +03:00
Clean up comments
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,8 +1,6 @@
|
||||
# stage 1 - all dependencies
|
||||
FROM webrecorder/browsertrix-crawler:latest
|
||||
|
||||
ENV RUNNING_IN_DOCKER=1
|
||||
# ENV NO_PROXY=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -17,27 +15,21 @@ RUN pip install --upgrade pip && \
|
||||
rm geckodriver-v*
|
||||
|
||||
|
||||
# # install docker for WACZ
|
||||
# # TODO: currently disabled see https://github.com/bellingcat/auto-archiver/issues/66
|
||||
# # RUN curl -fsSL https://get.docker.com | sh
|
||||
|
||||
# # TODO: avoid copying unnecessary files, including .git
|
||||
# TODO: avoid copying unnecessary files, including .git
|
||||
COPY Pipfile* ./
|
||||
RUN pipenv install --skip-lock
|
||||
# # ENV IS_DOCKER=1
|
||||
# # doing this at the end helps during development, builds are quick
|
||||
|
||||
# doing this at the end helps during development, builds are quick
|
||||
COPY ./src/ .
|
||||
|
||||
# # TODO: figure out how to make volumes not be root, does it depend on host or dockerfile?
|
||||
# # RUN useradd --system --groups sudo --shell /bin/bash archiver && chown -R archiver:sudo .
|
||||
# # USER archiver
|
||||
# # ENTRYPOINT ["python3"]
|
||||
# # ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
# TODO: figure out how to make volumes not be root, does it depend on host or dockerfile?
|
||||
# RUN useradd --system --groups sudo --shell /bin/bash archiver && chown -R archiver:sudo .
|
||||
# USER archiver
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
|
||||
CMD ["python3"]
|
||||
|
||||
# # should be executed with 2 volumes (3 if local_storage)
|
||||
# # docker run -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/secrets:/app/secrets -v $PWD/local_archive:/app/local_archive aa --help
|
||||
# should be executed with 2 volumes (3 if local_storage)
|
||||
# docker run -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/secrets:/app/secrets -v $PWD/local_archive:/app/local_archive aa --help
|
||||
Reference in New Issue
Block a user