Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Statistics
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
mashplace
backend
Statistics
Commits
514d76dd
Commit
514d76dd
authored
2 years ago
by
Maxim Solomonov
Browse files
Options
Downloads
Patches
Plain Diff
MP-17: Updated dockerfile
parent
71c54694
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+13
-9
13 additions, 9 deletions
Dockerfile
with
13 additions
and
9 deletions
Dockerfile
+
13
−
9
View file @
514d76dd
# syntax=docker/dockerfile:1
ARG
CONT_IMG_VER
FROM
registry.gitlab.mashroom.com/infrastructure-team/operations/imagebaykery/gobuild:$CONT_IMG_VER
AS
builder
ARG
REGISTRY
ARG
VERSION
FROM
$REGISTRY/mashplace/devops/infrastructure/gobuild:$VERSION
AS
builder
WORKDIR
/go/src/gitlab.mashroom.com/mashroom
COPY
. .
RUN
export
CGO_ENABLED
=
1
GO111MODULE
=
on
GOOS
=
linux
GOARCH
=
amd64
&&
\
cd
cmd/app/
# go build -tags=jsoniter -a -race -installsuffix cgo -mod vendor -o statistics -v main.go
RUN
export
CGO_ENABLED
=
1
GO111MODULE
=
on
GOOS
=
linux
GOARCH
=
amd64
GOPRIVATE
=
gitlab.mashplace.com
&&
\
go mod tidy
&&
\
go mod vendor
&&
\
cd
cmd/app
&&
\
go build
-tags
=
jsoniter
-a
-race
-installsuffix
cgo
-mod
vendor
-o
/go/bin/mashroom-statistics/statistics
-v
main.go
# FROM scratch
# COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# COPY --from=builder /go/src/gitlab.mashroom.com/mashroom ./
# ENTRYPOINT ["/mashroom-account"]
\ No newline at end of file
FROM
alpine:3.17.1
RUN
apk
--update
--no-cache
add mongodb-tools postgresql13-client
COPY
--from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY
--from=builder /go/bin/mashroom-statistics /
ENTRYPOINT
["/statistics"]
This diff is collapsed.
Click to expand it.
Preview
0%
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