16 lines
236 B
Docker
16 lines
236 B
Docker
FROM rust:alpine
|
|
|
|
RUN adduser -D robbit
|
|
RUN apk add --no-cache musl-dev
|
|
|
|
WORKDIR /home/robbit/
|
|
COPY ./ ./
|
|
RUN chown robbit ./*
|
|
RUN cp ./configs/config.toml ./config.toml
|
|
|
|
USER robbit
|
|
|
|
RUN cargo build -r
|
|
|
|
CMD ["./target/release/robbit"]
|