Face identification and recognition scalable server with multiple face directories.
https://github.com/ehp/faceserver
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.
20 lines
542 B
20 lines
542 B
FROM golang:alpine AS build-env |
|
|
|
RUN apk update && apk upgrade && \ |
|
apk add --no-cache bash git openssh |
|
|
|
COPY ./apiserver /apiserver/apiserver |
|
COPY ./apiserver.yaml /apiserver/apiserver.yaml |
|
COPY ./go.mod /apiserver/go.mod |
|
COPY ./main.go /apiserver/main.go |
|
|
|
WORKDIR /apiserver |
|
RUN go build -o goapp |
|
|
|
# final stage |
|
FROM alpine |
|
WORKDIR /apiserver |
|
COPY --from=build-env /apiserver/goapp /apiserver/apiserver |
|
COPY --from=build-env /apiserver/apiserver.yaml /apiserver/apiserver.yaml |
|
RUN mkdir /apiserver/files |
|
ENTRYPOINT /apiserver/apiserver
|
|
|