1
0
html2pic/Dockerfile

18 lines
357 B
Docker
Raw Normal View History

2018-09-11 10:57:48 +00:00
FROM golang:alpine AS build
WORKDIR /go/src/github.com/yumc.pw/cloud/html2pic
ADD . .
RUN go build -o main
FROM alpine:edge
LABEL maintainer="MiaoWoo<admin@yumc.pw>"
ENV LANG C.UTF-8
WORKDIR /root
RUN apk add --no-cache ca-certificates
COPY --from=build /go/src/github.com/yumc.pw/cloud/html2pic/main ./main
ADD lib /root/lib
CMD ./main -lib /root/lib