kanidm/Dockerfile
Firstyear b4fc71b27d
Docker improvements (#81)
Update the dockerfile to work correctly with the newer server options and runtime.
2019-09-06 13:05:27 +10:00

23 lines
507 B
Docker

FROM opensuse/tumbleweed:latest
MAINTAINER william@blackhats.net.au
EXPOSE 8080
COPY . /home/rsidm/
WORKDIR /home/rsidm/
RUN zypper install -y timezone cargo rust gcc sqlite3-devel libopenssl-devel && \
RUSTC_BOOTSTRAP=1 cargo build --release && \
zypper rm -u -y cargo rust gcc && \
zypper clean
RUN cd /etc && \
ln -sf ../usr/share/zoneinfo/Australia/Brisbane localtime
VOLUME /data
ENV RUST_BACKTRACE 1
CMD ["/home/rsidm/target/release/rsidmd", "server", "-D", "/data/kanidm.db"]