Skip to content

Commit

Permalink
image debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRunfola committed Dec 5, 2024
1 parent aeaa1f0 commit 27d16c7
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions geoBoundaryBuilder/images/geoBoundariesBase.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
# Start with a statically versioned Alpine base image
FROM alpine:3.18

# Set environment variables to prevent interactive prompts and ensure consistent Python behavior
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1

# Install required system dependencies
RUN apk add --no-cache \
python3=3.11.5-r0 \
py3-pip=23.1.2-r0 \
gcc=12.3.1_git20230527-r0 \
musl-dev=1.2.4-r1 \
libffi-dev=3.4.4-r0 \
openssl-dev=3.1.2-r0 \
g++=12.3.1_git20230527-r0 \
make=4.3-r1 \
git=2.40.1-r0 \
git-lfs=3.4.0-r0 \
gdal=3.7.1-r0 \
geos-dev=3.11.1-r0 \
proj-dev=9.2.0-r0 \
jpeg-dev=9e-r0 \
zlib-dev=1.2.13-r1 \
cairo-dev=1.17.6-r0 \
py3-cffi=1.15.1-r3 \
py3-psycopg2=2.9.6-r0
# Update the package index and install dependencies
RUN apk update && apk add --no-cache \
python3 \
py3-pip \
gcc \
musl-dev \
libffi-dev \
openssl-dev \
g++ \
make \
git \
git-lfs \
gdal \
geos-dev \
proj-dev \
jpeg-dev \
zlib-dev \
cairo-dev \
py3-cffi \
py3-psycopg2

# Install Python packages
RUN pip install --upgrade pip \
Expand All @@ -39,21 +37,15 @@ RUN pip install --upgrade pip \
jsonschema==4.19.0 \
zipfile36==0.1.3

# Install the Prefect Kubernetes package for Kubernetes-specific integrations
# Install Prefect Kubernetes components
RUN pip install prefect-kubernetes

# Set up git-lfs
RUN git lfs install

# Create a directory for Prefect worker configuration (optional)
RUN mkdir -p /etc/prefect

# Expose Prefect's standard ports (if running agents/workers in the container)
# Expose necessary ports
EXPOSE 4200
EXPOSE 8080

# Set up default entrypoint (this can be overridden for specific workflows)
ENTRYPOINT ["prefect"]

# Optionally specify a default CMD to launch a Prefect worker (replace as needed)
#CMD ["worker", "start", "--pool", "kubernetes"]
CMD ["worker", "start", "--pool", "kubernetes"]

0 comments on commit 27d16c7

Please sign in to comment.