refractr/package.Dockerfile

18 lines
360 B
Text
Raw Normal View History

FROM rust:slim
ARG UID="1000"
ARG GID="1000"
ENV REFRACTR_DOCKER="true"
WORKDIR /usr/src/refractr
COPY . .
RUN apt update && apt install pkg-config libssl-dev -y
2025-03-09 14:32:46 -06:00
RUN cargo install --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"]