Skip to content

Commit 719272c

Browse files
committed
update Dockerfile
1 parent 7870c71 commit 719272c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

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

7-
FROM alpine:3.7
7+
FROM alpine
88
COPY --from=builder /go/bin/pic2ascii /usr/local/bin/
99
RUN apk add -U --no-cache ffmpeg-libs
1010
ENTRYPOINT [ "pic2ascii" ]

0 commit comments

Comments
 (0)