1
0
html2pic/Dockerfile

18 lines
357 B
Docker

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