FROM rust:slim ARG UID="1000" ARG GID="1000" WORKDIR /usr/src/refractr COPY . . RUN apt update && apt install pkg-config libssl-dev -y RUN cargo build --release RUN cargo install --locked --path . RUN groupadd -g $GID refractr RUN useradd -u $UID -g $GID -MN refractr RUN mkdir /etc/refractr && chown refractr:refractr /etc/refractr USER refractr CMD ["refractr"]