forked from blenk92/MoCOCrW-build-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (19 loc) · 826 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
FROM ubuntu:focal
# Install MoCOCrW dependencies
RUN apt update && DEBIAN_FRONTEND=noninteractive apt -y install build-essential cmake pkg-config libboost-dev googletest git doxygen python3
# Install OpenSSL1.1.1
RUN git clone https://github.com/openssl/openssl.git
RUN cd openssl && git checkout OpenSSL_1_1_1-stable \
&& ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' \
&& make \
&& make install
RUN rm -rf openssl
# Build as user so that tests cannot modify files in /root (running tests as
# root makes one of them fail)
RUN useradd user && mkdir /home/user && chown user:user /home/user
COPY files/fix-permissions.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD "bash"
# Provide mountpoints for bind-mounts
VOLUME ["/src", "/build"]