Skip to content

Commit

Permalink
fix: Trying curl in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroSiqueira1 committed Sep 3, 2024
1 parent 36f3458 commit 52c8ce3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

# Install GDAL dependencies
RUN apt-get update \
&& apt-get install -y binutils libproj-dev gdal-bin

FROM curlimages/curl:7.81.0 as curl-step
ARG GDAL_WHEELS_URL=https://prefeitura-rio.github.io/storage/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
RUN curl -sSLo /tmp/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl $GDAL_WHEELS_URL

# Setting environment with prefect version
ARG PREFECT_VERSION=1.4.1
ENV PREFECT_VERSION $PREFECT_VERSION
Expand All @@ -28,4 +29,7 @@ RUN python3 -m pip install --no-cache-dir -U "pip>=21.2.4" "prefect==$PREFECT_VE
# Install requirements
WORKDIR /app
COPY . .
RUN python3 -m pip install --prefer-binary --no-cache-dir -U .
COPY --from=curl-step /tmp/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl /tmp/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Check failure on line 32 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint

DL3023 error: `COPY --from` cannot reference its own `FROM` alias
RUN python3 -m pip install --prefer-binary --no-cache-dir -U . \
python3 -m pip install --no-cache-dir /tmp/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl && \
rm /tmp/GDAL-3.4.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl

0 comments on commit 52c8ce3

Please sign in to comment.