Docker: actually squash slimmed image
Change-Id: Ifb26d54e616ae1434feed01312172bda83a4d866
diff --git a/Dockerfile.remove-example-data b/Dockerfile.remove-example-data
index 4c81d23..d3f0e61 100644
--- a/Dockerfile.remove-example-data
+++ b/Dockerfile.remove-example-data
@@ -1,4 +1,16 @@
-FROM idscorpuslinguistics/derekovecs:tmp
+FROM idscorpuslinguistics/derekovecs:tmp AS base
+
+RUN rm -rf /derekovecs/example-models
RUN hypnotoad -t script/derekovecs-server || true
RUN rm -rf /usr/bin/g++* /usr/include/linux /usr/bin/gcc* /usr/bin/make /usr/lib/gcc /usr/bin/x86_64-alpine-linux*
RUN rm -rf /derekovecs/example-models
+
+FROM scratch AS derekovecs
+WORKDIR /derekovecs
+COPY --from=base / /
+
+ENV MOJO_CONFIG=/config/derekovecs.conf
+
+EXPOSE 3000
+
+ENTRYPOINT [ "hypnotoad", "-f", "script/derekovecs-server" ]