Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
dex
Commits
f762bb8b
Unverified
Commit
f762bb8b
authored
2 years ago
by
Mark Sagi-Kazar
Browse files
Options
Downloads
Patches
Plain Diff
build: try debian based go image
Signed-off-by:
Mark Sagi-Kazar
<
mark.sagikazar@gmail.com
>
parent
badca044
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+8
-7
8 additions, 7 deletions
Dockerfile
with
8 additions
and
7 deletions
Dockerfile
+
8
−
7
View file @
f762bb8b
...
@@ -2,22 +2,23 @@ ARG BASE_IMAGE=alpine
...
@@ -2,22 +2,23 @@ ARG BASE_IMAGE=alpine
FROM
--platform=$BUILDPLATFORM tonistiigi/xx
AS
xx
FROM
--platform=$BUILDPLATFORM tonistiigi/xx
AS
xx
FROM
--platform=$BUILDPLATFORM golang:1.20.3
-alpine3.16
AS
builder
FROM
--platform=$BUILDPLATFORM golang:1.20.3
AS
builder
RUN
apk add
--no-cache
--update
alpine-sdk ca-certificates openssl clang lld
# RUN apk add --no-cache --update alpine-sdk ca-certificates openssl clang lld
RUN
apt-get update
&&
apt-get
install
-y
clang lld pkg-config
COPY
--from=xx / /
COPY
--from=xx / /
ARG
TARGETPLATFORM
ARG
TARGETPLATFORM
RUN
CC
=
$(
xx-info
)
-gcc
RUN
xx-go
--wrap
# gcc is only installed for libgcc
# gcc is only installed for libgcc
RUN
xx-apk
--update
--no-cache
add musl-dev gcc
# RUN xx-apk --update --no-cache add musl-dev gcc
RUN
xx-apt-get
install
-y
binutils gcc libc6-dev
RUN
xx-go
--wrap
# lld has issues building static binaries for ppc so prefer ld for it
# lld has issues building static binaries for ppc so prefer ld for it
RUN
[
"
$(
xx-info
arch
)
"
!=
"ppc64le"
]
||
XX_CC_PREFER_LINKER
=
ld xx-clang
--setup-target-triple
#
RUN [ "$(xx-info arch)" != "ppc64le" ] || XX_CC_PREFER_LINKER=ld xx-clang --setup-target-triple
WORKDIR
/usr/local/src/dex
WORKDIR
/usr/local/src/dex
...
...
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