1 Star 0 Fork 0

吕冰 / influxdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
FROM ubuntu:20.04 AS dbuild
ENV DEBIAN_FRONTEND noninteractive
# Needed for Yarn steps to veryify the keys
RUN apt update
RUN apt install --yes curl gnupg2
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# Now update index with Yarn
RUN apt update
RUN apt install --yes \
cargo \
git \
golang \
libclang-dev \
llvm-dev \
make \
nodejs \
protobuf-compiler \
ragel \
rustc \
yarn
FROM dbuild AS dshell
ARG USERID=1000
RUN adduser --quiet --home /code --uid ${USERID} --disabled-password --gecos "" influx
USER influx
ENTRYPOINT [ "/bin/bash" ]
FROM dbuild AS dbuild-all
COPY . /code
WORKDIR /code
RUN make
##
# InfluxDB Image (Monolith)
##
FROM debian:stretch-slim AS influx
COPY --from=dbuild-all /code/bin/linux/influxd /usr/bin/influxd
EXPOSE 8086
ENTRYPOINT [ "/usr/bin/influxd" ]
##
# InfluxDB UI Image
##
FROM nginx:alpine AS ui
EXPOSE 80
COPY --from=dbuild-all /code/ui/build /usr/share/nginx/html
Go
1
https://gitee.com/lyu_bing/influxdb.git
git@gitee.com:lyu_bing/influxdb.git
lyu_bing
influxdb
influxdb
master

搜索帮助