-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
33 lines (28 loc) · 762 Bytes
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
FROM ubuntu:20.04
LABEL maintainer="Harith Al-Safi" \
description="mcpp" \
version="1.0"
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/London
RUN apt-get update -y
RUN apt-get install -y \
gcc-8 \
g++-8 \
build-essential \
cmake \
python \
libpthread-stubs0-dev \
ca-certificates && \
apt-get autoclean && \
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* \
mkdir /home/mcpp
COPY . /home/mcpp
RUN rm -f -R /home/mcpp/build
RUN mkdir /home/mcpp/build
RUN cd /home/mcpp && \
cd build && \
cmake .. -DNO-TEST=False && \
make && \
make install