2020-11-10 15:00:22 +00:00
|
|
|
###
|
2021-02-25 15:05:54 +00:00
|
|
|
# Dockerfile used for deploying IOx
|
2020-11-10 15:00:22 +00:00
|
|
|
##
|
2021-02-25 15:05:54 +00:00
|
|
|
FROM debian:buster-slim
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2021-03-15 16:15:05 +00:00
|
|
|
&& apt-get install -y libssl1.1 libgcc1 libc6 ca-certificates --no-install-recommends \
|
2021-02-25 15:05:54 +00:00
|
|
|
&& rm -rf /var/lib/{apt,dpkg,cache,log}
|
2020-06-29 19:33:41 +00:00
|
|
|
|
|
|
|
RUN groupadd -g 1500 rust \
|
|
|
|
&& useradd -u 1500 -g rust -s /bin/bash -m rust
|
|
|
|
|
|
|
|
USER rust
|
|
|
|
|
2020-11-05 18:51:04 +00:00
|
|
|
RUN mkdir ~/.influxdb_iox
|
|
|
|
RUN ls -la ~/.influxdb_iox
|
2020-06-29 19:33:41 +00:00
|
|
|
|
2020-11-05 18:51:04 +00:00
|
|
|
COPY target/release/influxdb_iox /usr/bin/influxdb_iox
|
2020-06-29 19:33:41 +00:00
|
|
|
|
|
|
|
EXPOSE 8080 8082
|
|
|
|
|
2021-02-25 15:05:54 +00:00
|
|
|
ENTRYPOINT ["influxdb_iox"]
|
2021-03-08 13:40:40 +00:00
|
|
|
|
2021-03-12 17:30:49 +00:00
|
|
|
CMD ["run"]
|