refractr/package.Dockerfile

18 lines
368 B
Text
Raw Normal View History

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
2025-03-06 20:35:40 -07:00
RUN useradd -u $UID -g $GID -mN refractr
RUN mkdir /etc/refractr && chown refractr:refractr /etc/refractr
USER refractr
CMD ["refractr"]