-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (34 loc) · 983 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
34
35
36
37
FROM golang:1.15
ENV SQUASHFUSE_VERSION=0.1.103 \
GOPROXY=https://proxy.golang.org
WORKDIR /opt/build
RUN set -ex \
&& apt-get update \
\
# Install squashfuse
&& apt-get --no-install-recommends -y install \
autoconf \
automake \
libtool \
liblzma-dev \
liblz4-dev \
liblzo2-dev \
zlib1g-dev \
libfuse-dev \
&& wget https://github.com/vasi/squashfuse/archive/${SQUASHFUSE_VERSION}.tar.gz -O squashfuse.tar.gz \
&& tar zxf squashfuse.tar.gz -C / \
&& cd /squashfuse-${SQUASHFUSE_VERSION} \
&& ./autogen.sh \
&& ./configure \
&& make install \
&& ldconfig \
&& cd .. \
&& rm -rf /squashfuse-${SQUASHFUSE_VERSION} \
\
# Install squashfs tools and fuse
&& apt-get --no-install-recommends -y install \
squashfs-tools \
fuse \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY go.mod go.sum ./
RUN go mod download