mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-09 16:10:01 +00:00
Added Dockerfile to containerize mondash
This commit is contained in:
parent
f7a89ffe17
commit
fb83a45bf2
2 changed files with 41 additions and 0 deletions
10
docker/Dockerfile
Normal file
10
docker/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM golang
|
||||
|
||||
MAINTAINER Knut Ahlers <knut@ahlers.me>
|
||||
|
||||
RUN go get github.com/Luzifer/mondash && \
|
||||
go install github.com/Luzifer/mondash
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENTRYPOINT ["/go/bin/mondash"]
|
31
docker/README.md
Normal file
31
docker/README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# luzifer/mondash Dockerfile
|
||||
|
||||
This repository contains **Dockerfile** of [Luzifer/mondash](https://github.com/Luzifer/mondash) for [Docker](https://www.docker.com/)'s [automated build](https://registry.hub.docker.com/u/luzifer/mondash/) published to the public [Docker Hub Registry](https://registry.hub.docker.com/).
|
||||
|
||||
## Base Docker Image
|
||||
|
||||
- [golang](https://registry.hub.docker.com/_/golang/)
|
||||
|
||||
## Installation
|
||||
|
||||
1. Install [Docker](https://www.docker.com/).
|
||||
|
||||
2. Download [automated build](https://registry.hub.docker.com/u/luzifer/mondash/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull luzifer/mondash`
|
||||
|
||||
## Usage
|
||||
|
||||
To launch it, just replace the variables in following command and start the container:
|
||||
|
||||
```
|
||||
docker run \
|
||||
-e AWS_ACCESS_KEY_ID=myaccesskeyid \
|
||||
-e AWS_SECRET_ACCESS_KEY=mysecretaccesskey \
|
||||
-e S3Bucket=mybucketname \
|
||||
-e BASE_URL=http://www.mondash.org \
|
||||
-e API_TOKEN=yourownrandomtoken \
|
||||
-p 80:3000 \
|
||||
luzifer/mondash
|
||||
```
|
||||
|
||||
Easy!
|
||||
|
Loading…
Reference in a new issue