Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1034724c
Commit
1034724c
authored
Jun 23, 2020
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use static binaries in docker container
This is more robust cross-platform/architecture. fixes #7422
parent
b86e9304
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+3
-3
No files found.
Dockerfile
View file @
1034724c
...
...
@@ -33,14 +33,14 @@ ENV TINI_VERSION v0.19.0
RUN
set
-eux
;
\
dpkgArch
=
"
$(
dpkg
--print-architecture
)
"
;
\
case
"
${
dpkgArch
##*-
}
"
in
\
"amd64"
|
"armhf"
|
"arm64"
)
tiniArch
=
"tini-
$dpkgArch
"
;;
\
"amd64"
|
"armhf"
|
"arm64"
)
tiniArch
=
"tini-
static-
$dpkgArch
"
;;
\
*
)
echo
>
&2
"unsupported architecture:
${
dpkgArch
}
"
;
exit
1
;;
\
esac
;
\
cd
/tmp
\
&&
git clone https://github.com/ncopa/su-exec.git
\
&&
cd
su-exec
\
&&
git checkout
-q
$SUEXEC_VERSION
\
&&
make
\
&&
make
su-exec-static
\
&&
cd
/tmp
\
&&
wget
-q
-O
tini https://github.com/krallin/tini/releases/download/
$TINI_VERSION
/
$tiniArch
\
&&
chmod
+x tini
...
...
@@ -53,7 +53,7 @@ LABEL maintainer="Steven Allen <steven@stebalien.com>"
ENV
SRC_DIR /go-ipfs
COPY
--from=0 $SRC_DIR/cmd/ipfs/ipfs /usr/local/bin/ipfs
COPY
--from=0 $SRC_DIR/bin/container_daemon /usr/local/bin/start_ipfs
COPY
--from=0 /tmp/su-exec/su-exec /sbin/su-exec
COPY
--from=0 /tmp/su-exec/su-exec
-static
/sbin/su-exec
COPY
--from=0 /tmp/tini /sbin/tini
COPY
--from=0 /bin/fusermount /usr/local/bin/fusermount
COPY
--from=0 /etc/ssl/certs /etc/ssl/certs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment