blob: d3f0e61882fdec22bbaa43605bfc3908a3367d1b [file] [log] [blame]
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" ]