Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
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
Terraform modules
Analyze
Contributor analytics
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
danet
goSDN
Commits
dcf33c14
Commit
dcf33c14
authored
3 years ago
by
Neil-Jocelyn Schark
Browse files
Options
Downloads
Patches
Plain Diff
moved apt commands further to the beginning
parent
38fc9ce5
No related branches found
No related tags found
No related merge requests found
Pipeline
#76642
passed
3 years ago
Stage: test
Stage: build
Stage: apply
Stage: integration-test
Stage: .post
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-2
4 additions, 2 deletions
Dockerfile
with
4 additions
and
2 deletions
Dockerfile
+
4
−
2
View file @
dcf33c14
...
@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder
...
@@ -2,10 +2,12 @@ FROM golang:1.16-buster AS builder
ARG
GITLAB_USER
ARG
GITLAB_USER
ARG
GITLAB_TOKEN
ARG
GITLAB_TOKEN
ARG
BUILDARGS
ARG
BUILDARGS
WORKDIR
/src/gosdn
COPY
. .
RUN
apt-get update
&&
apt-get
install
-y
git
RUN
apt-get update
&&
apt-get
install
-y
git
RUN
git config
--global
url.
"https://
$GITLAB_USER
:
$GITLAB_TOKEN
@code.fbi.h-da.de"
.insteadOf
"https://code.fbi.h-da.de"
RUN
git config
--global
url.
"https://
$GITLAB_USER
:
$GITLAB_TOKEN
@code.fbi.h-da.de"
.insteadOf
"https://code.fbi.h-da.de"
WORKDIR
/src/gosdn
COPY
. .
RUN
GOOS
=
linux go build
$BUILDARGS
./cmd/gosdn
RUN
GOOS
=
linux go build
$BUILDARGS
./cmd/gosdn
FROM
debian:latest
FROM
debian:latest
...
...
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