mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 21:18:35 +03:00
Consolidate and organize config files (#61)
This commit is contained in:
22
docker/web/Dockerfile
Normal file
22
docker/web/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Stage 1: install dependencies
|
||||
FROM python:3.10-slim AS build
|
||||
|
||||
WORKDIR /aa-api
|
||||
# TODO: multistage build
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
gcc \
|
||||
g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --no-cache-dir poetry
|
||||
COPY ../../pyproject.toml ../../poetry.lock ../../README.md ./
|
||||
RUN poetry install --with web --no-interaction --no-ansi --no-cache
|
||||
|
||||
# Copy the application code and configurations
|
||||
COPY ../../alembic.ini ./
|
||||
COPY ../../app ./app/
|
||||
COPY ../../user-groups.* ./app/
|
||||
|
||||
# Run the FastAPI app with Uvicorn
|
||||
ENTRYPOINT ["poetry", "run"]
|
||||
Reference in New Issue
Block a user