Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IBMC-Agent
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
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Research Labs
NEMO Project
NEMO Kernel
Intent-based Migration Controller
IBMC-Agent
Commits
7f529d88
Commit
7f529d88
authored
3 months ago
by
Ignacio Prusiel Mariscal
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile updated
parent
a592257c
No related branches found
No related tags found
No related merge requests found
Pipeline
#65480
passed with warnings
3 months ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-7
5 additions, 7 deletions
Dockerfile
with
5 additions
and
7 deletions
Dockerfile
+
5
−
7
View file @
7f529d88
...
...
@@ -19,23 +19,21 @@ RUN go env | grep GOINSECURE
RUN
go
env
-w
GOINSECURE
=
github.com
&&
go mod download
# Copy the source code into the container
COPY
.
/cmd/migrate ./
COPY
.
/app
# Build the Go app
# RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main ./main.go
RUN
GOOS
=
linux
GOARCH
=
arm64 go build
-o
main ./main.go
RUN
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
amd64 go build
-o
main ./main.go
#
Uncomment the following line to compile an image for arm64 arch
#
RUN GOOS=linux GOARCH=arm64 go build -o main ./
mai
n.go
#Uncomment the following line to compile an image for arm64 arch
#RUN GOOS=linux GOARCH=arm64 go build -o main ./
intent-based-migratio
n.go
# Stage 2: Create the final image
FROM
alpine:latest
# Set the working directory inside the final image
WORKDIR
/root
# Copy the pre-built binary from the builder stage
COPY
--from=builder /app/main .
# Command to run the executable
CMD
["./main"]
CMD
["./main"]
\ 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