blob: d3f0e61882fdec22bbaa43605bfc3908a3367d1b [file] [log] [blame]
Marc Kupietza6a58762024-09-13 17:02:59 +02001FROM idscorpuslinguistics/derekovecs:tmp AS base
2
3RUN rm -rf /derekovecs/example-models
Marc Kupietz10ccb982024-09-12 14:15:13 +02004RUN hypnotoad -t script/derekovecs-server || true
5RUN rm -rf /usr/bin/g++* /usr/include/linux /usr/bin/gcc* /usr/bin/make /usr/lib/gcc /usr/bin/x86_64-alpine-linux*
6RUN rm -rf /derekovecs/example-models
Marc Kupietza6a58762024-09-13 17:02:59 +02007
8FROM scratch AS derekovecs
9WORKDIR /derekovecs
10COPY --from=base / /
11
12ENV MOJO_CONFIG=/config/derekovecs.conf
13
14EXPOSE 3000
15
16ENTRYPOINT [ "hypnotoad", "-f", "script/derekovecs-server" ]