Skip to content

Commit

Permalink
Add better dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Xe committed Mar 28, 2015
1 parent 62ac0a1 commit 16f958d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@ FROM flitter/init

RUN apt-get update &&\
apt-get upgrade -yq &&\
apt-get install -yq gcc make lua5.1-dev lua5.1 luarocks libyaml-dev libsqlite3-dev golang
apt-get install -yq gcc make lua5.1-dev lua5.1 luarocks libyaml-dev libsqlite3-dev

RUN luarocks install --server=http://rocks.moonscript.org moonrocks &&\
moonrocks install yaml &&\
moonrocks install moonscript &&\
moonrocks install json4lua &&\
luarocks install luasocket &&\
moonrocks install lsqlite3

ADD . /app
# Golang compilers
RUN cd /usr/local && wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz && \
tar xf go1.4.2.linux-amd64.tar.gz && rm go1.4.2.linux-amd64.tar.gz

ADD . /go/src/github.com/Xe/Tetra
ADD run/runit /etc/service/tetra

ENV TETRA_DOCKER YES
ENV PATH $PATH:/usr/local/go:/go/bin
ENV GOPATH /go
ENV PORT 3000

RUN go get github.com/tools/godep

EXPOSE 3000

ENTRYPOINT /sbin/my_init

0 comments on commit 16f958d

Please sign in to comment.