-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f970dd
commit d4a9e45
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ubuntu:20.04 AS builder | ||
|
||
ENV TZ=Asia/Seoul | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get update | ||
RUN apt-get --assume-yes install software-properties-common | ||
RUN apt-get install -y gdal-bin libgdal-dev libomp-dev cmake make | ||
RUN dpkg -l | grep -i gdal | ||
RUN apt-get --assume-yes install build-essential | ||
#RUN apt-get install -y gcc gpp | ||
|
||
# Copy everything | ||
COPY . /code | ||
|
||
RUN mkdir /code/build | ||
WORKDIR /code/build | ||
RUN cmake .. && make | ||
|
||
FROM ubuntu:20.04 | ||
ENV TZ=Asia/Seoul | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get update | ||
RUN apt-get --assume-yes install libgdal-dev libomp-dev | ||
COPY --from=builder /code /code | ||
WORKDIR /code | ||
|
||
ENTRYPOINT ["/code/build/dem2mesh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters