UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
P
Party Bus
Valkyrie
valkyrie-api
Commits
9016bd22
Commit
9016bd22
authored
Jul 01, 2021
by
abrichards
Browse files
restore dockerfile to not use go mod cache
parent
8be6a0b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Dockerfile
Dockerfile
+9
-6
No files found.
Dockerfile
View file @
9016bd22
# NOTE: USING THIS IMAGE UNTIL registry1 credentials are added to IL2 runners
# Build the manager binary
FROM
registry.il2.dso.mil/platform-one/devops/pipeline-templates/valkyrie/golang-builder-1.16:1.1 as builder
# note: Adam tried to use GOMODCACHE env variable to pull in go cache
# it worked locally but not with buildah.
WORKDIR
/workspace
# set go module cache
ENV
GOMODCACHE=/workspace/.gomodcache
# Copy the Go Modules manifests
COPY
. .
COPY
go.mod go.sum ./
COPY
main.go main.go driver.go driver.go ./
COPY
apis/ apis/
COPY
config/ config/
COPY
custom/ custom/
COPY
controllers/ controllers/
COPY
clients/ clients/
# RUN chmod 755 go.sum
# download with json logging
# RUN go mod download -json
RUN
go mod download
# RUN ls -al
# Build
RUN
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
amd64
GO111MODULE
=
on go build
-a
-o
manager main.go driver.go
...
...
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