Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
http-faccess
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
testing
http-faccess
Commits
5bef64dd
Commit
5bef64dd
authored
Apr 22, 2020
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dockerfile.
parent
9c14c025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
Dockerfile
Dockerfile
+25
-0
No files found.
Dockerfile
0 → 100644
View file @
5bef64dd
FROM
golang:1.11.6 as builder
RUN
/usr/sbin/adduser
--system
--no-create-home
http-faccess
RUN
go get
-d
-v
github.com/slimhazard/gogitversion
&&
\
cd
/go/src/github.com/slimhazard/gogitversion
&&
\
make
install
WORKDIR
$GOPATH/src/code.uplex.de/uplex-varnish/http-faccess
COPY
go.mod .
COPY
go.sum .
ENV
GO111MODULE=on
RUN
go mod download
COPY
main.go .
COPY
./.git/ .
RUN
go generate
&&
\
GOOS
=
linux
GOARCH
=
amd64 go build
-tags
netgo
-ldflags
=
'-w -s'
\
-o
/go/bin/http-faccess
FROM
scratch
COPY
--from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY
--from=builder /etc/passwd /etc/passwd
COPY
--from=builder /go/bin/http-faccess /go/bin/http-faccess
USER
http-faccess
ENTRYPOINT
["/go/bin/http-faccess"]
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