diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100644
index 0000000000000000000000000000000000000000..9625508aa3b1e9acb403857b73e929732a32c377
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Test environment
+if [[ ! -d /builds ]]; then
+	echo "In order to use this image, you must mount the working directory to /builds"
+	exit 1
+fi
+REFERENCE=$(ls -d /builds/* | head -1)
+if [[ -z "${REFERENCE}" ]]; then
+	echo "Aborting because of empty working directory"
+	exit 1
+fi
+
+# Prepare environment
+_durs_prepare() {
+	touch /durs/reference || exit 1
+	chown --reference "${REFERENCE}" /durs/reference || exit 1
+	chown -R durs:durs /builds/* || exit 1
+}
+
+# Terminate
+_durs_terminate() {
+	chown -R --reference /durs/reference /builds/* || exit 1
+	rm -f /durs/reference
+	exit ${1}
+}
+
+# Prepare and execute building
+_durs_prepare
+su - durs
+_durs_terminate $?
diff --git a/entry.sh b/entry.sh
deleted file mode 100644
index 0914919b5e00b6fb211f2ee20551ff45c026c047..0000000000000000000000000000000000000000
--- a/entry.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-set -e
-
-export HOME=/tmp/home
-mkdir -p $HOME
-
-# Initialize the wine prefix (virtual windows installation)
-export WINEPREFIX=/tmp/wine
-mkdir -p $WINEPREFIX
-# FIXME: Make the wine prefix initialization faster
-wineboot &> /dev/null
-
-# Put libstdc++ and some other mingw dlls in WINEPATH
-# This must work for x86_64 and i686
-P1=$(dirname $(find /usr -name libwinpthread-1.dll))
-export WINEPATH="$(ls -d /usr/lib/gcc/*-w64-mingw32/*win32);$P1"
-
-exec "$@"