-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Request Baskets service (latest) | ||
# Version 1.0 | ||
|
||
FROM ubuntu | ||
|
||
MAINTAINER Vladimir L, vladimir_l@gmx.net | ||
|
||
# Create a volume for rbaskets service (uncomment if backups are required) | ||
#VOLUME /opt/rbaskets | ||
|
||
# One liner: | ||
# - Install golang & git | ||
# - Build the service inside temp directory | ||
# - Cleanup | ||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get -y upgrade \ | ||
&& apt-get install -y golang git \ | ||
&& export GOPATH="$(mktemp -d)" \ | ||
&& go get github.com/darklynx/request-baskets \ | ||
&& cp "$GOPATH/bin/request-baskets" /usr/local/bin/ \ | ||
&& mkdir -p /opt/rbaskets \ | ||
&& rm -rf "$GOPATH" \ | ||
&& apt-get purge --auto-remove -y golang git \ | ||
&& apt-get autoclean -y \ | ||
&& apt-get autoremove -y | ||
|
||
# Expose ports | ||
EXPOSE 55555 | ||
|
||
CMD request-baskets -db bolt -file /opt/rbaskets/baskets.db |