Skip to content

Instantly share code, notes, and snippets.

@emicklei
Created March 20, 2015 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emicklei/8906eaa2f75225734943 to your computer and use it in GitHub Desktop.
Save emicklei/8906eaa2f75225734943 to your computer and use it in GitHub Desktop.
docker file for compiling chipmunk Go binding with release 7.0.0
FROM golang:1.4.2-wheezy
# cmake, protobuf
#
RUN apt-get update
RUN apt-get install --no-install-recommends -yqq cmake g++
ENV CXX /usr/bin/g++
# Chipmunk
#
WORKDIR /
RUN curl http://chipmunk-physics.net/release/Chipmunk-7.x/Chipmunk-7.0.0.tgz > Chip.tgz && tar xvf Chip.tgz
RUN cd Chipmunk-7.0.0 && cmake -D BUILD_DEMOS:BOOL=OFF . && make
ENV CGO_CFLAGS -I/Chipmunk-7.0.0/include
ENV CGO_LDFLAGS -L/Chipmunk-7.0.0/src
RUN go get -v -x github.com/ianremmler/chipmunk
CMD ls /Chipmunk-7.0.0/src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment