Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicle committed Jul 5, 2016
1 parent 7c14052 commit 76f7edb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -0,0 +1 @@
README.md
16 changes: 16 additions & 0 deletions Dockerfile
@@ -0,0 +1,16 @@
FROM golang:1.6.2-alpine

# Install dependency packages
RUN set -ex \
&& apk update \
&& apk add --no-cache ca-certificates git wget \
&& update-ca-certificates

# Install go libraries
RUN set -ex \
&& go get github.com/revel/cmd/revel \
&& wget -O glide.zip https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-386.zip \
&& unzip glide.zip \
&& rm glide.zip \
&& mv linux-386/glide $GOPATH/bin \
&& rm -rf linux-386
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -2,3 +2,10 @@

This repository provide Dockerfile for Revel.

## How to build image

1. Setup docker.
1. Run the following command.
```bash
$ docker build -t revel .
```

0 comments on commit 76f7edb

Please sign in to comment.