A semi-automatic parser of Ancient Greek and Latin languages.
https://lexis.glossa.info/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
580 B
33 lines
580 B
FROM golang:alpine as builder |
|
|
|
WORKDIR /lexis |
|
|
|
COPY lexis.go go.mod ./ |
|
|
|
RUN apk add --no-cache git |
|
|
|
# RUN go get github.com/PuerkitoBio/goquery |
|
# RUN go get github.com/gorilla/mux |
|
RUN go mod tidy |
|
RUN go build lexis.go |
|
|
|
#---------------------------------- |
|
|
|
FROM alpine:edge |
|
|
|
ENV service_user="lexis" |
|
|
|
RUN addgroup -S ${service_user} && adduser -S ${service_user} -G ${service_user} |
|
|
|
RUN mkdir -p /lexis && chown -R ${service_user}:${service_user} /lexis |
|
|
|
WORKDIR /lexis |
|
|
|
USER "$service_user" |
|
|
|
COPY web web |
|
COPY --from=builder /lexis/lexis . |
|
|
|
ENTRYPOINT ["./lexis"] |
|
CMD ["-serve"] |
|
|
|
|