mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 01:52:26 +08:00
docker: switch to alpine dev channel, for go1.7
Go 1.7 funnily demands gcc for installing gx. License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.4
|
FROM alpine:edge
|
||||||
MAINTAINER Lars Gierth <lgierth@ipfs.io>
|
MAINTAINER Lars Gierth <lgierth@ipfs.io>
|
||||||
|
|
||||||
# There is a copy of this Dockerfile called Dockerfile.fast,
|
# There is a copy of this Dockerfile called Dockerfile.fast,
|
||||||
@ -36,7 +36,7 @@ ENV SRC_PATH /go/src/github.com/ipfs/go-ipfs
|
|||||||
# Get the go-ipfs sourcecode
|
# Get the go-ipfs sourcecode
|
||||||
COPY . $SRC_PATH
|
COPY . $SRC_PATH
|
||||||
|
|
||||||
RUN apk add --update musl go git bash wget ca-certificates \
|
RUN apk add --update musl-dev gcc go git bash wget ca-certificates \
|
||||||
# Setup user and fs-repo directory
|
# Setup user and fs-repo directory
|
||||||
&& mkdir -p $IPFS_PATH \
|
&& mkdir -p $IPFS_PATH \
|
||||||
&& adduser -D -h $IPFS_PATH -u 1000 ipfs \
|
&& adduser -D -h $IPFS_PATH -u 1000 ipfs \
|
||||||
@ -58,7 +58,7 @@ RUN apk add --update musl go git bash wget ca-certificates \
|
|||||||
&& cp $SRC_PATH/bin/container_daemon /usr/local/bin/start_ipfs \
|
&& cp $SRC_PATH/bin/container_daemon /usr/local/bin/start_ipfs \
|
||||||
&& chmod 755 /usr/local/bin/start_ipfs \
|
&& chmod 755 /usr/local/bin/start_ipfs \
|
||||||
# Remove all build-time dependencies
|
# Remove all build-time dependencies
|
||||||
&& apk del --purge musl go git && rm -rf $GOPATH && rm -vf $IPFS_PATH/api
|
&& apk del --purge musl-dev gcc go git && rm -rf $GOPATH && rm -vf $IPFS_PATH/api
|
||||||
|
|
||||||
# Call uid 1000 "ipfs"
|
# Call uid 1000 "ipfs"
|
||||||
USER ipfs
|
USER ipfs
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.4
|
FROM alpine:edge
|
||||||
MAINTAINER Lars Gierth <lgierth@ipfs.io>
|
MAINTAINER Lars Gierth <lgierth@ipfs.io>
|
||||||
|
|
||||||
# This is a copy of /Dockerfile,
|
# This is a copy of /Dockerfile,
|
||||||
@ -28,7 +28,7 @@ ENV SRC_PATH /go/src/github.com/ipfs/go-ipfs
|
|||||||
# and trigger a re-run of all following commands.
|
# and trigger a re-run of all following commands.
|
||||||
COPY ./package.json $SRC_PATH/package.json
|
COPY ./package.json $SRC_PATH/package.json
|
||||||
|
|
||||||
RUN apk add --update musl go git bash wget ca-certificates \
|
RUN apk add --update musl-dev gcc go git bash wget ca-certificates \
|
||||||
&& mkdir -p $IPFS_PATH \
|
&& mkdir -p $IPFS_PATH \
|
||||||
&& adduser -D -h $IPFS_PATH -u 1000 ipfs \
|
&& adduser -D -h $IPFS_PATH -u 1000 ipfs \
|
||||||
&& chown ipfs:ipfs $IPFS_PATH && chmod 755 $IPFS_PATH \
|
&& chown ipfs:ipfs $IPFS_PATH && chmod 755 $IPFS_PATH \
|
||||||
@ -48,7 +48,7 @@ RUN cd $SRC_PATH \
|
|||||||
&& cp ipfs /usr/local/bin/ipfs \
|
&& cp ipfs /usr/local/bin/ipfs \
|
||||||
&& cp $SRC_PATH/bin/container_daemon /usr/local/bin/start_ipfs \
|
&& cp $SRC_PATH/bin/container_daemon /usr/local/bin/start_ipfs \
|
||||||
&& chmod 755 /usr/local/bin/start_ipfs \
|
&& chmod 755 /usr/local/bin/start_ipfs \
|
||||||
&& apk del --purge musl go git && rm -rf $GOPATH && rm -vf $IPFS_PATH/api
|
&& apk del --purge musl-dev gcc go git && rm -rf $GOPATH && rm -vf $IPFS_PATH/api
|
||||||
|
|
||||||
USER ipfs
|
USER ipfs
|
||||||
VOLUME $IPFS_PATH
|
VOLUME $IPFS_PATH
|
||||||
|
Reference in New Issue
Block a user