1 Star 0 Fork 72

uygurjan2008/go-ldap-admin

forked from opsre/go-ldap-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 912 Bytes
一键复制 编辑 原始数据 按行查看 历史
eryajf 提交于 2023-05-31 22:18 . doc: 添加wait组件的repo仓库
FROM golang:1.18.10-alpine3.16 AS builder
# ENV GOPROXY https://goproxy.io
RUN mkdir /app && apk add --no-cache --virtual .build-deps \
ca-certificates \
gcc \
g++
ADD . /app/
WORKDIR /app
RUN sed -i 's@localhost:389@openldap:389@g' /app/config.yml \
&& sed -i 's@host: localhost@host: mysql@g' /app/config.yml && go build -o go-ldap-admin .
### build final image
FROM alpine:3.16
# we set the timezone `Asia/Shanghai` by default, you can be modified
# by `docker build --build-arg="TZ=Other_Timezone ..."`
ARG TZ="Asia/Shanghai"
ENV TZ ${TZ}
RUN mkdir /app
WORKDIR /app
COPY --from=builder /app/ .
RUN apk upgrade \
&& apk add bash tzdata sqlite vim \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone
RUN chmod +x wait go-ldap-admin
# see wait repo: https://github.com/ufoscout/docker-compose-wait
CMD ./wait && ./go-ldap-admin
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/uygurjan2008_admin/go-ldap-admin.git
[email protected]:uygurjan2008_admin/go-ldap-admin.git
uygurjan2008_admin
go-ldap-admin
go-ldap-admin
main

搜索帮助