1 Star 0 Fork 0

sunbengu/go-report-builder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
MorPahima 提交于 2021-06-13 16:37 . change render timeout in dockerfile
FROM golang:1.13-alpine AS builder
WORKDIR /src
COPY ./go.mod ./go.sum ./
RUN go mod download
COPY ./ ./
RUN CGO_ENABLED=0 go build \
-installsuffix 'static' \
-o /app .
FROM alpine:latest
RUN apk update && apk add --no-cache nmap && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk update && \
apk add --no-cache \
ca-certificates \
chromium \
harfbuzz \
"freetype>2.8" \
ttf-freefont \
nss
COPY --from=builder /app .
RUN mkdir /templates
ENV TEMPLATES_PATH="/templates"
ENV RENDER_TIMEOUT="5s"
ENV SERVER_HOST="localhost"
ENV SERVER_PORT="8080"
ENV GIN_MODE="release"
ADD examples /templates
CMD ["./app"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sunbengu/go-report-builder.git
git@gitee.com:sunbengu/go-report-builder.git
sunbengu
go-report-builder
go-report-builder
main

搜索帮助