major refactor of structure for worker V web: docker/app/secrets/envs/...

This commit is contained in:
msramalho
2025-02-10 00:41:50 +00:00
parent a1b730bad4
commit f8c45e2d92
74 changed files with 567 additions and 525 deletions

25
worker.Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# From python:3.10
FROM bellingcat/auto-archiver
# set work directory
WORKDIR /aa-api
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh
# set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
# install dependencies
RUN pip install --upgrade pip && \
apt-get update
COPY ./Pipfile* ./
RUN pipenv install
# copy source code and .env files over
COPY alembic.ini ./
COPY .env* ./app/
COPY ./secrets/ ./secrets/
COPY ./app/ ./app/
ENTRYPOINT ["pipenv", "run"]