git repos / blockattack-game

commit 420ab05c

Poul Sander · 2019-03-27 19:13
420ab05ca4a7c32a0a4679a449ee9402075acadd patch · browse files
parent 21624171edfe114f3a8d2ef810611245785602bc

Change the Dockerfile from the readme to use Ubuntu 16.04 instead of Ubuntu 14.04. The SDL2 package has been broken in the Ubuntu 14.04 Docker image for almost two years now.

Changed files

M README.md before
A source/misc/docker/Dockerfile.Ubuntu16.04build
diff --git a/README.md b/README.md index f9c8c1d..bd128a2 100644 --- a/README.md +++ b/README.md
@@ -58,7 +58,7 @@ As getting a C++ project with many dependencies to compile can be a daunting tas
On a fresh checkout you can use:
```
-docker build -f source/misc/docker/Dockerfile.Ubuntu14.04build . -t blockattack_test
+docker build -f source/misc/docker/Dockerfile.Ubuntu16.04build . -t blockattack_test
```
and
```
diff --git a/source/misc/docker/Dockerfile.Ubuntu16.04build b/source/misc/docker/Dockerfile.Ubuntu16.04build new file mode 100644 index 0000000..7f4f119 --- /dev/null +++ b/source/misc/docker/Dockerfile.Ubuntu16.04build
@@ -0,0 +1,14 @@
+FROM ubuntu:16.04
+
+RUN apt-get update && apt-get install -yy build-essential libphysfs-dev libboost-dev cmake libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libboost-program-options-dev libutfcpp-dev zip gettext
+
+RUN mkdir -p /staging/blockattack-game
+
+COPY . /staging/blockattack-game
+
+ENV BLOCKATTACK_VERSION 2.5.0-SNAPSHOT
+
+RUN cd /staging/blockattack-game && \
+./packdata.sh && \
+cmake . && \
+make