forked from miclav/mapcrafter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (43 loc) · 966 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Build Image
#
FROM alpine:latest as builder
# Add the git repo
ADD . /git/mapcrafter
# Dependencies needed for building Mapcrafter
# (not sure how many of these are actually needed)
RUN apk add \
cmake \
gcc \
make \
g++ \
zlib-dev \
libpng-dev \
libjpeg-turbo-dev \
boost-dev
# Build mapcrafter from source
RUN cd /git/mapcrafter && \
mkdir build && cd build && \
cmake .. && \
make && \
mkdir /tmp/mapcrafter && \
make DESTDIR=/tmp/mapcrafter install
#
# Final Image
#
FROM alpine:latest
# Mapcrafter, built in previous stage
COPY --from=builder /tmp/mapcrafter/ /
# Depedencies needed for running Mapcrafter
RUN apk add \
libpng \
libjpeg-turbo \
boost \
boost-iostreams \
boost-system \
boost-filesystem \
boost-program_options \
shadow
# Entrypoint
ADD entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]