Skip to content

Commit

Permalink
Merge pull request fiorix#84 from gxela/master
Browse files Browse the repository at this point in the history
added Dockerfile
  • Loading branch information
fiorix committed Nov 12, 2014
2 parents 38180bc + 2cf15b9 commit cb37fe2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM google/golang

RUN apt-get install -y build-essential libsqlite3-dev pkg-config file supervisord

WORKDIR /gopath/src/app
ADD . /gopath/src/app/
RUN go get app
RUN cd /gopath/src/app/
RUN go build

#... will download files and process them to create ipdb.sqlite
RUN cd db && ./updatedb
RUN file /gopath/src/app/db/ipdb.sqlite

RUN /usr/bin/install -o www-data -g www-data -m 0755 -d /var/log/freegeoip

EXPOSE 8080

CMD []
ENTRYPOINT ["/gopath/bin/app"]

0 comments on commit cb37fe2

Please sign in to comment.