Skip to content

Commit 441f792

Browse files
committed
fix: docker
1 parent fc22bd0 commit 441f792

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

etl/Dockerfile.extract

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
ARG 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
75
WORKDIR /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"]

0 commit comments

Comments
 (0)