3 Star 16 Fork 4

streamerzero / md

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 595 Bytes
一键复制 编辑 原始数据 按行查看 历史
streamerzero 提交于 2024-05-17 15:53 . fix: 优化日志
FROM node:20-alpine as nodejs
COPY ./web /build/web
WORKDIR /build/web
RUN npm config set registry https://registry.npmmirror.com
RUN npm install
RUN npm run build
FROM golang:1.22-alpine as go
ENV GOPROXY=https://goproxy.cn,direct
COPY ./md /build/md
COPY --from=nodejs /build/web/dist /build/md/web
WORKDIR /build/md
RUN go build
FROM alpine:latest
COPY --from=go /build/md/md /md/
ENV reg=true
EXPOSE 9900
RUN chmod +x /md/md
CMD /md/md -p 9900 -log /md/logs -data /md/data -reg=${reg} -pg_host=${pg_host} -pg_port=${pg_port} -pg_user=${pg_user} -pg_password=${pg_password} -pg_db=${pg_db}
Go
1
https://gitee.com/streamerzero/md.git
git@gitee.com:streamerzero/md.git
streamerzero
md
md
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891