File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 11ARG ENVIRONMENT="prod"
22
3- # Use the official Python image from the Docker Hub
4- FROM python:3.10
3+ FROM python:3.11
54
6- # Set the working directory in the container
75WORKDIR /app
8- COPY pyproject.toml ./
9- COPY src/birdxplorer_etl/__init__.py ./src/birdxplorer_etl/
106
11- RUN python -m pip install --no-cache-dir --upgrade pip && \
12- pip install --no-cache-dir -e .[prod]
13-
14- RUN apt-get update && apt-get install -y --no-install-recommends libpq5 postgresql-client-15 sqlite3 \
7+ RUN apt-get update \
8+ && apt-get install -y --no-install-recommends \
9+ gcc \
10+ libpq-dev \
11+ libpq5 \
12+ postgresql-client-15 \
13+ sqlite3 \
1514 && apt-get clean \
1615 && rm -rf /var/lib/apt/lists/*
1716
18- COPY . ./
17+ COPY etl/. .
18+
19+ RUN python -m pip install --no-cache-dir --upgrade pip && \
20+ pip install --no-cache-dir -e .[prod]
1921
20- # Set the entry point to run the Prefect flow
21- ENTRYPOINT ["python", "src/birdxplorer_etl/main .py"]
22+ # 6. Entrypoint to run extract.py
23+ ENTRYPOINT ["python", "-u", " src/birdxplorer_etl/run_extract .py"]
You can’t perform that action at this time.
0 commit comments