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.
34 lines
580 B
34 lines
580 B
6 years ago
|
FROM golang:alpine as builder
|
||
|
|
||
|
WORKDIR /lexis
|
||
|
|
||
4 years ago
|
COPY lexis.go go.mod ./
|
||
6 years ago
|
|
||
|
RUN apk add --no-cache git
|
||
|
|
||
4 years ago
|
# RUN go get github.com/PuerkitoBio/goquery
|
||
|
# RUN go get github.com/gorilla/mux
|
||
|
RUN go mod tidy
|
||
6 years ago
|
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 .
|
||
|
|
||
4 years ago
|
ENTRYPOINT ["./lexis"]
|
||
|
CMD ["-serve"]
|
||
6 years ago
|
|