Docker: set ipfs as file owner when adding
This commit is contained in:
parent
ff104a9220
commit
e32341363d
|
@ -28,11 +28,11 @@ RUN set -eux; \
|
|||
# Get the TLS CA certificates, they're not provided by busybox.
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
|
||||
COPY go.* $SRC_PATH/
|
||||
COPY --chown=1000:users go.* $SRC_PATH/
|
||||
WORKDIR $SRC_PATH
|
||||
RUN go mod download
|
||||
|
||||
COPY . $SRC_PATH
|
||||
COPY --chown=1000:users . $SRC_PATH
|
||||
RUN make install
|
||||
|
||||
|
||||
|
|
|
@ -10,11 +10,11 @@ ENV SRC_PATH $GOPATH/src/github.com/ipfs/ipfs-cluster
|
|||
ENV GO111MODULE on
|
||||
ENV GOPROXY https://proxy.golang.org
|
||||
|
||||
COPY go.* $SRC_PATH/
|
||||
COPY --chown=1000:users go.* $SRC_PATH/
|
||||
WORKDIR $SRC_PATH
|
||||
RUN go mod download
|
||||
|
||||
COPY . $SRC_PATH
|
||||
COPY --chown=1000:users . $SRC_PATH
|
||||
RUN make install
|
||||
|
||||
#------------------------------------------------------
|
||||
|
|
|
@ -12,11 +12,11 @@ RUN cd /tmp && \
|
|||
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
|
||||
chmod +x jq-linux64
|
||||
|
||||
COPY go.* $SRC_PATH/
|
||||
COPY --chown=1000:users go.* $SRC_PATH/
|
||||
WORKDIR $SRC_PATH
|
||||
RUN go mod download
|
||||
|
||||
COPY . $SRC_PATH
|
||||
COPY --chown=1000:users . $SRC_PATH
|
||||
RUN make install
|
||||
|
||||
#------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user