mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 13:38:33 +03:00
major refactor of structure for worker V web: docker/app/secrets/envs/...
This commit is contained in:
25
worker.Dockerfile
Normal file
25
worker.Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user