Marc Kupietz | a6a5876 | 2024-09-13 17:02:59 +0200 | [diff] [blame^] | 1 | FROM idscorpuslinguistics/derekovecs:tmp AS base |
| 2 | |
| 3 | RUN rm -rf /derekovecs/example-models |
Marc Kupietz | 10ccb98 | 2024-09-12 14:15:13 +0200 | [diff] [blame] | 4 | RUN hypnotoad -t script/derekovecs-server || true |
| 5 | RUN rm -rf /usr/bin/g++* /usr/include/linux /usr/bin/gcc* /usr/bin/make /usr/lib/gcc /usr/bin/x86_64-alpine-linux* |
| 6 | RUN rm -rf /derekovecs/example-models |
Marc Kupietz | a6a5876 | 2024-09-13 17:02:59 +0200 | [diff] [blame^] | 7 | |
| 8 | FROM scratch AS derekovecs |
| 9 | WORKDIR /derekovecs |
| 10 | COPY --from=base / / |
| 11 | |
| 12 | ENV MOJO_CONFIG=/config/derekovecs.conf |
| 13 | |
| 14 | EXPOSE 3000 |
| 15 | |
| 16 | ENTRYPOINT [ "hypnotoad", "-f", "script/derekovecs-server" ] |