26 lines
565 B
Docker
26 lines
565 B
Docker
###
|
|
# Dockerfile used for deploying IOx
|
|
##
|
|
FROM debian:buster-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y libssl1.1 libgcc1 libc6 ca-certificates --no-install-recommends \
|
|
&& rm -rf /var/lib/{apt,dpkg,cache,log}
|
|
|
|
RUN groupadd -g 1500 rust \
|
|
&& useradd -u 1500 -g rust -s /bin/bash -m rust
|
|
|
|
USER rust
|
|
|
|
RUN mkdir ~/.influxdb_iox
|
|
RUN ls -la ~/.influxdb_iox
|
|
|
|
COPY target/release/influxdb_iox /usr/bin/influxdb_iox
|
|
RUN echo "The binary just added has sha256 sum $(sha256sum /usr/bin/influxdb_iox)"
|
|
|
|
EXPOSE 8080 8082
|
|
|
|
ENTRYPOINT ["influxdb_iox"]
|
|
|
|
CMD ["run"]
|