Docker: set ipfs as file owner when adding

This commit is contained in:
Hector Sanjuan 2021-12-01 01:47:15 +01:00
parent ff104a9220
commit e32341363d
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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
#------------------------------------------------------

View File

@ -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
#------------------------------------------------------