Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
cb09d0ba
Commit
cb09d0ba
authored
May 28, 2022
by
Yonatan Kahana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: build multiarch image with golang 1.18
parent
c0409446
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Dockerfile.multiarch
Dockerfile.multiarch
+2
-3
No files found.
Dockerfile.multiarch
View file @
cb09d0ba
FROM --platform=$BUILDPLATFORM golang:1.1
4
as build-env
FROM --platform=$BUILDPLATFORM golang:1.1
8
as build-env
# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
# xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM
# based on TARGETPLATFORM provided by Docker.
# based on TARGETPLATFORM provided by Docker.
...
@@ -18,4 +18,4 @@ FROM --platform=$TARGETPLATFORM alpine:3.12
...
@@ -18,4 +18,4 @@ FROM --platform=$TARGETPLATFORM alpine:3.12
RUN apk update --no-cache && apk add ca-certificates
RUN apk update --no-cache && apk add ca-certificates
COPY --from=build-env /bin/main /app/main
COPY --from=build-env /bin/main /app/main
ENTRYPOINT ["/app/main"]
ENTRYPOINT ["/app/main"]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment