first commit

This commit is contained in:
李寻欢 2021-10-26 13:49:14 +08:00
commit 0bb7134be9
5 changed files with 38 additions and 0 deletions

8
alpine-runner/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM alpine:3.13.6
LABEL org.opencontainers.image.authors="lxh@cxh.cn"
# 安装工具
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk add --update --no-cache tzdata
ENV TZ=Asia/Shanghai

View File

@ -0,0 +1,13 @@
FROM alpine:3.13.6
LABEL org.opencontainers.image.authors="lxh@cxh.cn"
# 安装工具
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk add --update --no-cache tzdata \
libgcc libstdc++ libx11 glib libxrender libxext libintl \
ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family
COPY --from=madnight/alpine-wkhtmltopdf-builder:0.12.5-alpine3.10-606718795 \
/bin/wkhtmltopdf /bin/wkhtmltopdf
COPY shs.otf /usr/share/fonts/
ENV TZ=Asia/Shanghai

BIN
alpine-runner/shs.otf Normal file

Binary file not shown.

14
golang-builder/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM golang:1.17.2-alpine
LABEL org.opencontainers.image.authors="lxh@cxh.cn"
# 修改alpine源为中科大的源安装必要工具
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk update && \
apk upgrade && \
apk add --no-cache ca-certificates gcc g++ && update-ca-certificates && \
apk add --no-cache --update tzdata && \
rm -rf /var/cache/apk/*
ENV TZ=Asia/Shanghai
# 修改源
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct

View File

@ -0,0 +1,3 @@
FROM golang:1.17-alpine
RUN apk --no-cache add gcc musl-dev git mercurial
COPY --from=golangci/golangci-lint:latest-alpine /usr/bin/golangci-lint /usr/bin/