Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 479
Docker buildx bake - The Sequel#133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
17d9793b28709221fdfbf3bf16154521926665eac5c5b035aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,10 @@ | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| /.git/ | ||
| /.github/ | ||
| /.gitmodules/ | ||
| /.idea/ | ||
| /.vscode/ | ||
| /docs/ | ||
| /*Dockerfile* | ||
| /.*ignore | ||
| /*.hcl | ||
| /*.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: Build | ||
| on: | ||
| push: | ||
| branches: | ||
| - docker-bake-the-sequel | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - name: Build and push | ||
| uses: docker/bake-action@v2 | ||
| with: | ||
| push: false |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # syntax=docker/dockerfile:1 | ||
| FROM golang:1.19 | ||
| ARG LIBICONV_VERSION=1.17 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # syntax=docker/dockerfile:1 | ||
| FROM php-base | ||
| COPY --from=golang-base /usr/local/go/bin/go /usr/local/bin/go | ||
| COPY --from=golang-base /usr/local/go /usr/local/go | ||
| # This is required to link the FrankenPHP binary to the PHP binary | ||
| RUN apt-get update && \ | ||
| apt-get -y --no-install-recommends install \ | ||
| libargon2-dev \ | ||
| libcurl4-openssl-dev \ | ||
| libonig-dev \ | ||
| libreadline-dev \ | ||
| libsodium-dev \ | ||
| libsqlite3-dev \ | ||
| libssl-dev \ | ||
| libxml2-dev \ | ||
| zlib1g-dev \ | ||
| && \ | ||
| apt-get clean | ||
| WORKDIR /go/src/app | ||
| COPY go.mod go.sum ./ | ||
| RUN go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs go get | ||
| RUN mkdir caddy && cd caddy | ||
| COPY caddy/go.mod caddy/go.sum ./caddy/ | ||
| RUN cd caddy && go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs go get | ||
| COPY *.* ./ | ||
| COPY caddy caddy | ||
| COPY C-Thread-Pool C-Thread-Pool | ||
| COPY internal internal | ||
| COPY testdata testdata | ||
| # todo: automate this? | ||
| # see https://github.com/docker-library/php/blob/master/8.2-rc/bullseye/zts/Dockerfile#L57-L59 for php values | ||
| ENV CGO_LDFLAGS="-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz $PHP_LDFLAGS" CGO_CFLAGS=$PHP_CFLAGS CGO_CPPFLAGS=$PHP_CPPFLAGS | ||
| RUN cd caddy/frankenphp && \ | ||
| go build && \ | ||
| cp frankenphp /usr/local/bin && \ | ||
| cp /go/src/app/caddy/frankenphp/Caddyfile /etc/Caddyfile | ||
| ENTRYPOINT ["/bin/bash","-c"] | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment explaining why it's necessary please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate file or what?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what it's doing :D