-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathquipu.dockerfile
36 lines (27 loc) · 1.11 KB
/
quipu.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
FROM ubuntu:latest
LABEL com.wildboarsoftware.app="quipu"
LABEL com.wildboarsoftware.major_version="8"
LABEL com.wildboarsoftware.minor_version="3"
RUN mkdir -p /usr/local/etc/isode-init
RUN mkdir -p /var/db/tmp
# From: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# "Always combine RUN apt-get update with apt-get install in the same RUN statement."
RUN apt-get update && apt-get install -y build-essential git bison flex
ADD . /isode
WORKDIR /isode
# This seems to be necessary to run the clean target.
ADD config/linux.make config/CONFIG.make
# This is just here to prevent accidentally including pre-built outputs in the Dockerfile.
RUN ./make clean
ADD config/linux.h h/config.h
ADD config/linux.make config/CONFIG.make
ADD config/*.local support/
# It seems that the Makefile is not very intelligent: you still have to make
# everything so you have all the headers. But we can trim down the build by at
# least installing only quipu.
RUN ./make everything && ./make inst-everything
RUN rm -rf /isode
WORKDIR /usr/local/etc/isode/
ADD docker/run.sh /
RUN chmod +x /run.sh
CMD [ "/run.sh" ]