refractr/Dockerfile

16 lines
303 B
Docker

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
USER refractr
CMD ["refractr"]