chirpstack/Dockerfile-dev-cache

37 lines
670 B
Plaintext
Raw Normal View History

2022-04-06 21:18:32 +01:00
FROM rust:1.59.0-buster
ENV PROJECT_PATH=/chirpstack
2022-04-18 21:19:24 +01:00
ENV CARGO_TARGET_DIR=/target
RUN mkdir -p $PROJECT_PATH
RUN mkdir -p $CARGO_TARGET_DIR
2022-04-06 21:18:32 +01:00
RUN apt-get update && \
apt-get install -y \
make \
cmake \
git \
bash \
screen \
postgresql-client \
2022-04-18 21:19:24 +01:00
libpq-dev \
2022-04-06 21:18:32 +01:00
mosquitto-clients \
redis-tools \
rpm \
clang \
2022-04-23 11:31:54 +01:00
golang-cfssl \
2022-04-23 20:47:39 +01:00
jq \
2022-04-18 21:19:24 +01:00
&& rm -rf /var/lib/apt/lists/*
2022-04-06 21:18:32 +01:00
RUN rustup component add rustfmt clippy
2022-04-18 21:19:24 +01:00
2022-04-06 21:18:32 +01:00
RUN cargo install diesel_cli --no-default-features --features postgres
RUN cargo install cargo-deb
RUN cargo install cargo-rpm
2022-04-18 21:19:24 +01:00
COPY . $PROJECT_PATH
2022-04-06 21:18:32 +01:00
WORKDIR $PROJECT_PATH/chirpstack
2022-04-18 21:19:24 +01:00
RUN cargo build --release
RUN rm -rf $PROJECT_PATH/*