Skip to content

Commit

Permalink
Merge pull request #3 from asfadmin/squash-layers
Browse files Browse the repository at this point in the history
Squash Layers
  • Loading branch information
bbuechler authored May 23, 2024
2 parents 1d93c48 + 1931219 commit 5b1a2e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/asf_mapready.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM redhat/ubi8:8.10
FROM redhat/ubi8:8.10 as builder

# Redhat environment with ASF MapReady

# Build apps
RUN yum update -y && \
yum install -y cmake cpan gcc perl perl-DBI sudo \
yum install -y cmake gcc perl \
libaio git gcc-c++ sqlite-devel \
libtiff-devel libcurl-devel glib2-devel \
libjpeg-turbo-devel libpng-devel \
Expand Down Expand Up @@ -115,10 +115,12 @@ RUN cd /tmp/build_mp && \
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig && \
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/ && \
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/HDF_Group/HDF5/${hdf5_ver}/lib/pkgconfig/ && \
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/ && \
export CFLAGS="-I/usr/include -I/usr/local/include/CUnit/ -I/usr/local/include/CUnit/ -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1" && \
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/ && \
./configure && make && make install && \
rm -rf /tmp/build_mp

FROM scratch
COPY --from=builder / /

ENTRYPOINT /bin/bash

0 comments on commit 5b1a2e7

Please sign in to comment.