-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM quay.io/drycc/base:v0.3.6
RUN adduser --system \
--shell /bin/bash \
--disabled-password \
--home /home/influxdb \
--group \
influxdb
COPY . /
RUN curl -SL -o /home/influxdb/envtpl https://github.com/arschles/envtpl/releases/download/0.2.3/envtpl_linux_amd64 \
&& chmod +x /home/influxdb/envtpl \
&& curl -SL -o /tmp/influxdb.deb https://dl.influxdata.com/influxdb/releases/influxdb_1.1.1_amd64.deb \
&& dpkg -i /tmp/influxdb.deb \
&& rm /tmp/influxdb.deb \
&& mkdir -p /data \
&& chown influxdb:influxdb /data \
&& chown -R influxdb:influxdb /home/influxdb \
&& chmod +x /home/influxdb/start-influx
VOLUME /data
USER influxdb
WORKDIR /home/influxdb
CMD ["./start-influx"]
# Expose the admin port
EXPOSE 8083
# Expose the ssl http api port
EXPOSE 8084
# Expose the http api port
EXPOSE 8086