Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gotifyWebhookForwarder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
gotifyWebhookForwarder
Commits
7cf7eb8b
Commit
7cf7eb8b
authored
7 months ago
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
optimize build speed and size
parent
7dad4643
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#53925
passed
7 months ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-5
8 additions, 5 deletions
Dockerfile
with
8 additions
and
5 deletions
Dockerfile
+
8
−
5
View file @
7cf7eb8b
FROM
golang:1.23.4-bookworm
AS
build
FROM
--platform=$BUILDPLATFORM tonistiigi/xx:1.6.1
AS
xx
FROM
--platform=$BUILDPLATFORM golang:1.23.5
AS
build
ARG
TARGETPLATFORM
COPY
--from=xx / /
WORKDIR
/app
WORKDIR
/app
COPY
go.mod go.sum ./
COPY
go.mod go.sum ./
RUN
go mod download
RUN
go mod download
COPY
*.go
./
COPY
./
./
RUN
CGO_ENABLED
=
0
GOOS
=
linux go build
-o
/gotifyWebhookForwarder
RUN
CGO_ENABLED
=
0
GOOS
=
linux
xx-
go build
-ldflags
"-w -s"
-o
/gotifyWebhookForwarder
FROM
alpine:3.21.2
RUN
apk add
--no-cache
ca-certificates
FROM
jonasled.dev/infra/images/scratch-rootless@sha256:2de6d042f1ed137351ebd4d21906158576cd048b46887a0e94805282ba98a49b
COPY
--from=build /gotifyWebhookForwarder /gotifyWebhookForwarder
COPY
--from=build /gotifyWebhookForwarder /gotifyWebhookForwarder
ENTRYPOINT
["/gotifyWebhookForwarder"]
ENTRYPOINT
["/gotifyWebhookForwarder"]
EXPOSE
3333
EXPOSE
3333
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment