We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 703776c commit 204ca2dCopy full SHA for 204ca2d
Dockerfile
@@ -1,8 +1,10 @@
1
FROM golang:1.10-alpine3.7 AS builder
2
WORKDIR /go/src/github.com/wzshiming/pic2ascii/
3
COPY . .
4
-RUN CGO_ENABLED=0 go install -a -ldflags '-s' ./cmd/...
+RUN apk add -U gcc libc-dev ffmpeg-dev ffmpeg-libs
5
+RUN go install -tags support_video -a -ldflags '-s -w' ./cmd/...
6
-FROM scratch
7
-COPY --from=builder /go/bin/pic2ascii /
8
-ENTRYPOINT [ "/pic2ascii" ]
+FROM alpine:3.7
+COPY --from=builder /go/bin/pic2ascii /usr/local/bin/
9
+RUN apk add -U --no-cache ffmpeg-libs
10
+ENTRYPOINT [ "pic2ascii" ]
0 commit comments