| FROM golang:latest as build |
| apt-get upgrade -y ca-certificates |
| RUN go build -o /src/kalamar-plugin-externalresources . |
| COPY --from=build /etc/ssl/certs /etc/ssl/certs |
| COPY --from=build /src/kalamar-plugin-externalresources /kalamar-plugin-externalresources |
| COPY --from=build /src/templates /templates |
| ENTRYPOINT [ "./kalamar-plugin-externalresources" ] |
| LABEL maintainer="korap@ids-mannheim.de" |
| LABEL description="Docker Image for Kalamar-Plugin-ExternalResources, a frontend plugin to link texts to external resources" |
| LABEL repository="https://github.com/KorAP/..." |
| # docker build -f Dockerfile -t korap/kalamar-plugin-externalresources . |
| # docker run --rm --network host -v ${PWD}/db/:/db/:z -v ${PWD}/.env:/.env korap/kalamar-plugin-externalresources |