-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:18.04 AS build
ADD . /code
WORKDIR /code
RUN apt-get update && \
apt-get install -y rsync time git apt-utils libpcre3-dev libtinfo-dev libz-dev libssl-dev libsqlite3-dev build-essential cmake ninja-build python-minimal wget && \
rm -rf /var/lib/apt/lists/* && \
git submodule update --init && \
./make-dist-docker.sh && \
cd / && \
rm -rf /code/ && \
apt-get remove -y git apt-utils libpcre3-dev libssl-dev libsqlite3-dev build-essential cmake ninja-build python-minimal wget
# Create final image
FROM ubuntu:18.04
COPY --from=build /usr/bin/nlvm /usr/bin/nlvm
COPY --from=build /usr/lib/ /usr/lib/
RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/nlvm"]