Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cashier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
cashier
Commits
b7b3e5cf
Commit
b7b3e5cf
authored
6 years ago
by
Niall Sheridan
Browse files
Options
Downloads
Patches
Plain Diff
Use multi-stage build with current Go version
parent
44620690
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+10
-7
10 additions, 7 deletions
Dockerfile
README.md
+7
-0
7 additions, 0 deletions
README.md
with
17 additions
and
7 deletions
Dockerfile
+
10
−
7
View file @
b7b3e5cf
FROM
golang:1.7-alpine
FROM
golang:latest
as
build
LABEL
maintainer="nsheridan@gmail.com"
ARG
SRC_DIR=/go/src/github.com/nsheridan/cashier
WORKDIR
${SRC_DIR}
ADD
. ${SRC_DIR}
RUN
CGO_ENABLED
=
0
GOOS
=
linux go
install
-a
-installsuffix
static ./cmd/cashierd
ADD
. /go/src/github.com/nsheridan/cashier
RUN
apk add
--update
build-base
RUN
go
install
github.com/nsheridan/cashier/cmd/cashierd
VOLUME
/cashier
FROM
scratch
LABEL
maintainer="nsheridan@gmail.com"
WORKDIR
/cashier
ENTRYPOINT
/go/bin/cashierd
COPY
--from=build /go/bin/cashierd /
ENTRYPOINT
["/cashierd"]
This diff is collapsed.
Click to expand it.
README.md
+
7
−
0
View file @
b7b3e5cf
...
...
@@ -5,6 +5,7 @@
-
[
Cashier
](
#cashier
)
-
[
How it works
](
#how-it-works
)
-
[
Installing
](
#installing
)
-
[
Docker
](
#docker
)
-
[
Requirements
](
#requirements
)
-
[
Server
](
#server
)
-
[
Client
](
#client
)
...
...
@@ -67,6 +68,12 @@ The server requires a configuration file ([sample config](example-server.conf)).
See
[
the configuration section
](
#configuration
)
for more detail.
## Docker
A
[
docker image is available
](
https://hub.docker.com/r/nsheridan/cashier
)
. Example usage:
```
docker run -it --rm -p 10000:10000 --name cashier -v ${PWD}:/cashier nsheridan/cashier
```
# Requirements
## Server
Go 1.10 or later, though it may work with earlier versions.
...
...
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