Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMarconato committed Jan 22, 2025
1 parent da9ed65 commit 64768de
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
ARG TARGETPLATFORM=linux/amd64

ARG SPATIALDATA_VERSION
ARG SPATIALDATA_IO_VERSION
ARG SPATIALDATA_PLOT_VERSION

# Use the specified platform to pull the correct base image.
# Override TARGETPLATFORM during build for different architectures, such as linux/arm64 for Apple Silicon.
# For example, to build for ARM64 architecture (e.g., Apple Silicon),
Expand All @@ -20,15 +16,26 @@ LABEL authors="Luca Marconato"

ENV PYTHONUNBUFFERED=1

ARG SPATIALDATA_VERSION
ARG SPATIALDATA_IO_VERSION
ARG SPATIALDATA_PLOT_VERSION

# debugging
RUN echo "Target Platform: ${TARGETPLATFORM}" && \
echo "Spatialdata Version: ${SPATIALDATA_VERSION}" && \
echo "Spatialdata IO Version: ${SPATIALDATA_IO_VERSION}" && \
echo "Spatialdata Plot Version: ${SPATIALDATA_PLOT_VERSION}"

# Update and install system dependencies.
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
python3-venv \
python3-dev \
git \
&& rm -rf /var/lib/apt/lists/*
#
&& rm -rf /var/lib/apt/lists/* \

# setup python virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --upgrade pip wheel
Expand Down

0 comments on commit 64768de

Please sign in to comment.