1
0
mirror of https://github.com/dswd/vpncloud.git synced 2025-01-10 22:37:51 +00:00
vpncloud/builder/Dockerfile-rpm

26 lines
632 B
Plaintext
Raw Normal View History

2019-12-05 18:28:49 +01:00
FROM centos:7
2019-03-02 01:12:42 +01:00
RUN yum groupinstall -y 'Development Tools'
2020-06-03 17:42:43 +02:00
RUN yum install -y ruby && gem install asciidoctor
2020-01-25 13:54:44 +01:00
2019-03-02 01:12:42 +01:00
RUN useradd -ms /bin/bash user
USER user
WORKDIR /home/user
2019-12-20 00:52:49 +01:00
ENV RUST=1.40.0
2019-03-02 01:12:42 +01:00
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain ${RUST}
ENV PATH=/home/user/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN rustup target add i686-unknown-linux-gnu \
&& rustup target add armv7-unknown-linux-gnueabihf
RUN cargo install cargo-rpm \
&& rm -rf /home/user/.cargo/{git,tmp,registry}
VOLUME /home/user/.cargo/tmp
VOLUME /home/user/.cargo/git
VOLUME /home/user/.cargo/registry