1 Star 0 Fork 50

SyncGithub/aginx

forked from haiker/aginx 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1011 Bytes
一键复制 编辑 原始数据 按行查看 历史
haiker 提交于 2020-07-07 19:32 . webui
FROM golang:1.13.6-alpine3.11 as builder
ENV GO111MODULE="on"
ARG LDFLAGS=""
ADD . /aginx
WORKDIR /aginx
RUN apk add --no-cache make build-base
RUN go build -ldflags "${LDFLAGS}" -o aginx aginx.go
FROM nginx:1.17.7-alpine
MAINTAINER Haiker ni@renzhen.la
COPY --from=builder /aginx/aginx /usr/sbin/aginx
COPY --from=builder /aginx/conf/aginx.conf /etc/nginx/aginx.conf
ENV AGINX_EMAIL="aginx@renzhen.la"
ENV AGINX_DEBUG="false" AGINX_LEVEL="info"
ENV AGINX_CONF="" AGINX_API="127.0.0.1:8011" AGINX_SECURITY=""
ENV AGINX_STORAGE="" AGINX_DISABLE_WATCHER=""
ENV AGINX_EXPOSE=""
ENV AGINX_DOCKER="" AGINX_DOCKER_API_VERSION="" AGINX_DOCKER_HOST="" AGINX_DOCKER_TLS_VERIFY="" AGINX_DOCKER_CERT_PATH=""
ENV AGINX_CONSUL="" AGINX_CONSUL_HTTP_ADDR="" AGINX_CONSUL_HTTO_TOKEN=""
RUN rm -rf /var/log/nginx/error.log /var/log/nginx/access.log && \
ln -s /dev/stderr /var/log/nginx/error.log && \
ln -s /dev/stdout /var/log/nginx/access.log
EXPOSE 8011 80 443
CMD ["server"]
ENTRYPOINT ["/usr/sbin/aginx"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sync-github/aginx.git
git@gitee.com:sync-github/aginx.git
sync-github
aginx
aginx
master

搜索帮助