-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 70027c1
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM golang:1.9 | ||
|
||
MAINTAINER Andrey Bukatov <andrey.bukatov@gmail.com> | ||
|
||
RUN dpkg --add-architecture armel && \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
linux-libc-dev-armel-cross \ | ||
libc6-armel-cross \ | ||
libc6-dev-armel-cross \ | ||
binutils-arm-linux-gnueabi \ | ||
libsdl1.2-dev:armel \ | ||
libsdl2-dev:armel \ | ||
gcc-arm-linux-gnueabi | ||
|
||
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabi/pkgconfig | ||
ENV CC arm-linux-gnueabi-gcc | ||
ENV GOOS linux | ||
ENV GOARCH arm | ||
ENV GOARM 7 | ||
ENV CGO_ENABLED 1 | ||
ENV CGO_LDFLAGS -L/usr/lib/arm-linux-gnueabi -lSDL2 | ||
ENV CGO_CFLAGS -I/usr/include/SDL2 -D_REENTRANT |