diff options
-rw-r--r-- | .dockerignore | 10 | ||||
-rwxr-xr-x | .github/workflows/ci-build.yml | 6 | ||||
-rw-r--r-- | Dockerfile | 27 |
3 files changed, 40 insertions, 3 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..bfa82a3d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.dockerignore +.git +.gitignore +.editorconfig +.github +/src +/tests +/bin +composer.json +vendor_php
\ No newline at end of file diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 28921a81..85d73214 100755 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ 7.2, 7.3, 7.4 ] + php: [ 7.4 ] go: [ 1.14, 1.15 ] os: [ ubuntu-latest ] env: @@ -57,8 +57,8 @@ jobs: - name: Install Composer dependencies run: composer install --prefer-dist --no-interaction --no-suggest # --prefer-source - # - name: Analyze PHP sources - # run: composer analyze + - name: Analyze PHP sources + run: composer analyze - name: Install Go dependencies run: go mod download diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..09cf7933 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM golang:latest as builder + +COPY . /src + +WORKDIR /src + +RUN set -x \ + && apt-get update -y \ + && apt-get install -y bash git \ + && go version \ + && bash ./build.sh \ + && test -f ./.rr.yaml + +FROM alpine:latest + +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.licenses="MIT" + +COPY --from=builder /src/rr /usr/bin/rr +COPY --from=builder /src/.rr.yaml /etc/rr.yaml + +ENTRYPOINT ["/usr/bin/rr"]
\ No newline at end of file |