Skip to content

Commit

Permalink
remove cd in favour of WORKDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV committed Oct 23, 2023
1 parent 41d058b commit 64be6c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openshift/docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ RUN NPROC=$(nproc)
# Note: HTTPS will result in certificate errors, hence the downgrade to HTTP here
#

RUN cd /tmp && wget http://download.osgeo.org/geos/geos-3.7.1.tar.bz2 && \
WORKDIR /tmp

RUN wget http://download.osgeo.org/geos/geos-3.7.1.tar.bz2 && \
tar xjf geos-3.7.1.tar.bz2 && \
cd geos-3.7.1/ && \
./configure --prefix=/usr/local && \
Expand All @@ -29,7 +31,7 @@ RUN cd /tmp && wget http://download.osgeo.org/geos/geos-3.7.1.tar.bz2 && \
# Note: HTTPS will result in certificate errors, hence the downgrade to HTTP here
#

RUN cd /tmp && wget http://download.osgeo.org/proj/proj-5.2.0.tar.gz && \
RUN wget http://download.osgeo.org/proj/proj-5.2.0.tar.gz && \
wget http://download.osgeo.org/proj/proj-datumgrid-north-america-1.1.tar.gz && \
tar xzf proj-5.2.0.tar.gz && \
cd proj-5.2.0/nad && \
Expand All @@ -46,7 +48,7 @@ RUN cd /tmp && wget http://download.osgeo.org/proj/proj-5.2.0.tar.gz && \
# (without SFCGAL as we aren't using "CREATE EXTENSION postgis_sfcgal;")
#

RUN cd /tmp && wget http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz && \
RUN wget http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz && \
tar zxvf gdal-2.4.0.tar.gz && cd gdal-2.4.0/ && \
./configure --prefix=/usr/local --with-python --with-sfcgal=no && \
make -j4 && \
Expand All @@ -55,6 +57,8 @@ RUN cd /tmp && wget http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz && \
rm -rf /tmp/gdal-2.4.0 /tmp/gdal-2.4.0.tar.gz


WORKDIR /

# Configure GDAL file locations
#
RUN echo "/usr/local/lib/" >> /etc/ld.so.conf && \
Expand Down

0 comments on commit 64be6c9

Please sign in to comment.