mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-27 11:41:52 +02:00
docker: Create "/.dockerenv" if it doesn't exist.
When building through the CI builders, detection of the Docker environment doesn't work. So we always create the file manually to make sure the version contains "~docker" in this case.
This commit is contained in:
parent
4b019a991f
commit
838e601183
|
@ -5,7 +5,8 @@ ARG TARGETOS
|
|||
WORKDIR /workdir
|
||||
|
||||
COPY . .
|
||||
RUN apk add --no-cache bash git build-base protobuf && \
|
||||
RUN touch /.dockerenv && \
|
||||
apk add --no-cache bash git build-base protobuf && \
|
||||
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make proxy; else \
|
||||
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make proxy; fi
|
||||
|
||||
|
|
|
@ -5,7 +5,8 @@ ARG TARGETOS
|
|||
WORKDIR /workdir
|
||||
|
||||
COPY . .
|
||||
RUN apk add --no-cache bash git build-base protobuf && \
|
||||
RUN touch /.dockerenv && \
|
||||
apk add --no-cache bash git build-base protobuf && \
|
||||
if [ -d "vendor" ]; then GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOPROXY=off make server; else \
|
||||
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make server; fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue