Skip to content

Instantly share code, notes, and snippets.

@airlanggacahya
Last active April 17, 2018 10:03
Show Gist options
  • Save airlanggacahya/2d73f49d1cce683a486527a431861223 to your computer and use it in GitHub Desktop.
Save airlanggacahya/2d73f49d1cce683a486527a431861223 to your computer and use it in GitHub Desktop.
sample dockerfile for rino
FROM ubuntu
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install git curl
RUN curl https://dl.google.com/go/go1.10.1.linux-amd64.tar.gz -o /usr/local/go1.10.1.linux-amd64.tar.gz
RUN cd /usr/local/ && tar -xvf go1.10.1.linux-amd64.tar.gz
RUN mkdir -p /data/goapp
ENV PATH="$PATH:/usr/local/go/bin"
ENV GOPATH=/data/goapp
RUN go get -v github.com/rinosukmandityo/testweb
EXPOSE 8003
ENTRYPOINT exec /data/goapp/bin/testweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment