summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-05 14:07:03 +0300
committerGitHub <[email protected]>2021-03-05 14:07:03 +0300
commit6598ee1f0f3778d19fa22f0ddc308493e1aeef67 (patch)
tree97d7c9cd6b86e4e2dcc069ef013f3ff8c1d3e0b0
parentf35afc274db0f3d0004db82a198e773f2d8ce6af (diff)
parent3bd2656fe979f07e81030fe049f062cfea24091c (diff)
Merge pull request #575 from tarampampam/patch-1
Dockerfile deletion
-rw-r--r--Dockerfile53
1 files changed, 0 insertions, 53 deletions
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 5291e86b..00000000
--- a/Dockerfile
+++ /dev/null
@@ -1,53 +0,0 @@
-# Image page: <https://hub.docker.com/_/golang>
-FROM golang:1.15.6 as builder
-
-# app version and build date must be passed during image building (version without any prefix).
-# e.g.: `docker build --build-arg "APP_VERSION=1.2.3" --build-arg "BUILD_TIME=$(date +%FT%T%z)" .`
-ARG APP_VERSION="undefined"
-ARG BUILD_TIME="undefined"
-
-# arguments to pass on each go tool link invocation
-ENV LDFLAGS="-s \
--X github.com/spiral/roadrunner/cmd/rr/cmd.Version=$APP_VERSION \
--X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$BUILD_TIME"
-
-RUN mkdir /src
-
-WORKDIR /src
-
-COPY ./go.mod ./go.sum ./
-
-# Burn modules cache
-RUN set -x \
- && go version \
- && go mod download \
- && go mod verify
-
-COPY . .
-
-# compile binary file
-RUN CGO_ENABLED=0 go build -trimpath -ldflags "$LDFLAGS" -o ./rr ./cmd/main.go
-
-# Image page: <https://hub.docker.com/_/alpine>
-FROM alpine:3.13
-
-# use same build arguments for image labels
-ARG APP_VERSION
-ARG BUILD_TIME
-
-LABEL \
- org.opencontainers.image.title="roadrunner" \
- org.opencontainers.image.description="High-performance PHP application server, load-balancer and process manager" \
- org.opencontainers.image.url="https://github.com/spiral/roadrunner" \
- org.opencontainers.image.source="https://github.com/spiral/roadrunner" \
- org.opencontainers.image.vendor="SpiralScout" \
- org.opencontainers.image.version="$APP_VERSION" \
- org.opencontainers.image.created="$BUILD_TIME" \
- org.opencontainers.image.licenses="MIT"
-
-# copy required files from builder image
-COPY --from=builder /src/rr /usr/bin/rr
-COPY --from=builder /src/.rr.yaml /etc/rr.yaml
-
-# use roadrunner binary as image entrypoint
-ENTRYPOINT ["/usr/bin/rr"]