Dockerfile 585 B

12345678910111213141516171819202122
  1. # BUILD
  2. FROM ubuntu:latest
  3. # Update and upgrade repo
  4. RUN apt-get update -y -q && apt-get upgrade -y -q
  5. # Install tools we might need
  6. RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git
  7. # Download Go 1.2.2 and install it to /usr/local/go
  8. RUN curl -s https://storage.googleapis.com/golang/go1.2.2.linux-amd64.tar.gz| tar -v -C /usr/local -xz
  9. # Let's people find our Go binaries
  10. ENV PATH $PATH:/usr/local/go/bin
  11. COPY dispatcher.go .
  12. RUN go build dispatcher.go
  13. EXPOSE 80
  14. CMD ["/dispatcher"]
  15. COPY static /static/