first commit
This commit is contained in:
commit
0bb7134be9
8
alpine-runner/Dockerfile
Normal file
8
alpine-runner/Dockerfile
Normal 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
|
13
alpine-runner/Dockerfile_wkhtml2pdf
Normal file
13
alpine-runner/Dockerfile_wkhtml2pdf
Normal 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
BIN
alpine-runner/shs.otf
Normal file
Binary file not shown.
14
golang-builder/Dockerfile
Normal file
14
golang-builder/Dockerfile
Normal 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
|
3
golang-checker/Dockerfile
Normal file
3
golang-checker/Dockerfile
Normal 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/
|
Loading…
Reference in New Issue
Block a user