Skip to content

Commit

Permalink
feat: add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxsen committed Jul 3, 2024
1 parent a5decd6 commit 00f32ca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.21

RUN apt update && apt install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg62-turbo-dev -y
WORKDIR /build
COPY . ./
RUN CGO_ENABLED=1 go build -a -tags netgo -ldflags '-w' -o av-capture ./

FROM debian:bookworm

COPY --from=0 /build/av-capture /bin/

RUN apt update && apt install ffmpeg libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg62-turbo-dev -y

ENTRYPOINT [ "/bin/av-capture" ]

0 comments on commit 00f32ca

Please sign in to comment.