Skip to content

Commit 204ca2d

Browse files
committed
update Dockerfile
1 parent 703776c commit 204ca2d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM golang:1.10-alpine3.7 AS builder
22
WORKDIR /go/src/github.com/wzshiming/pic2ascii/
33
COPY . .
4-
RUN CGO_ENABLED=0 go install -a -ldflags '-s' ./cmd/...
4+
RUN apk add -U gcc libc-dev ffmpeg-dev ffmpeg-libs
5+
RUN go install -tags support_video -a -ldflags '-s -w' ./cmd/...
56

6-
FROM scratch
7-
COPY --from=builder /go/bin/pic2ascii /
8-
ENTRYPOINT [ "/pic2ascii" ]
7+
FROM alpine:3.7
8+
COPY --from=builder /go/bin/pic2ascii /usr/local/bin/
9+
RUN apk add -U --no-cache ffmpeg-libs
10+
ENTRYPOINT [ "pic2ascii" ]

0 commit comments

Comments
 (0)