forked from mullvad/mullvadvpn-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (29 loc) · 967 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
# To build the image:
# docker build . -t quay.io/mullvad/mullvadvpn-app-build
# To push the image to Quay.io:
# docker push quay.io/mullvad/mullvadvpn-app-build
FROM debian:stretch@sha256:a5934d79acb9d1182ef5c747e23e462784f6345479e33b40c979fbe8dce5db40
RUN apt update -y && apt install build-essential \
gcc \
libdbus-1-dev \
rpm \
binutils \
curl \
p7zip-full \
git -y
# Install golang
ENV GOLANG_VERSION 1.16
# Found on https://golang.org/dl/
ENV GOLANG_HASH 013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2
RUN curl -Lo go.tgz https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
echo $(sha256sum go.tgz) && \
echo "${GOLANG_HASH} go.tgz" | sha256sum -c - && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz && \
rm -rf /var/lib/apt/lists/*
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN go version
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
RUN mkdir /mvd
CMD tail -f /dev/null