1
Fork 0

Configure docker and gh actions with go-face

This commit is contained in:
viktorstrate 2021-02-15 20:47:01 +01:00
parent 4b0365e8aa
commit 979ce161ae
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
2 changed files with 17 additions and 8 deletions

View File

@ -25,7 +25,10 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
- name: Get C dependencies
run: apt-get install -y libdlib-dev libblas-dev liblapack-dev libjpeg62-turbo-dev
- name: Get GO dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then

View File

@ -26,6 +26,9 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.15-buster AS api
RUN apt-get update
RUN apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
# Install go-face dependencies
RUN apt-get install -y libdlib-dev libblas-dev liblapack-dev libjpeg62-turbo-dev
COPY --from=tonistiigi/xx:golang / /
ARG TARGETPLATFORM
@ -42,6 +45,9 @@ RUN go mod download
ENV CGO_ENABLED 1
RUN go install github.com/mattn/go-sqlite3
# Build go-face
RUN go install github.com/Kagami/go-face
# Copy api source
COPY api /app