-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (33 loc) · 928 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
# Pistache.io-docker Copyright (C) 2016 Rob Williamson
FROM alpine
MAINTAINER Rob Williamson
WORKDIR /root/build
# add build dependencies & get the code.
RUN apk update
RUN apk add git
RUN apk add g++
RUN apk add make
RUN apk add cmake
RUN cat /usr/include/stdint.h
RUN cat /usr/include/bits/alltypes.h
RUN cat /usr/include/bits/stdint.h
RUN cat /usr/include/sys/types.h
RUN cat /usr/include/sys/sysmacros.h
RUN git clone https://github.com/rob-h-w/pistache.git
WORKDIR pistache
RUN git checkout Avoid-major-minor-macros
RUN git submodule update --init
# Build Pistache.io.
WORKDIR build
RUN cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
RUN make
# Install
RUN make install
# Create a user & folder for subsequent Pistache.io projects.
RUN adduser -S pistache
WORKDIR /home/pistache
RUN chown pistache:users /home/pistache
# Clean up the build files.
RUN rm -rf /root/build
# Switch to the user.
USER pistache