dockerfiles/agate/Dockerfile

22 lines
485 B
Docker
Raw Permalink Normal View History

2022-06-28 17:08:41 +02:00
FROM alpine:3.16
2021-02-17 18:06:08 +01:00
RUN apk add --no-cache --virtual .build-deps cargo && \
apk add --no-cache libgcc && \
cargo install agate && \
apk del .build-deps && \
mv /root/.cargo/bin/agate /usr/local/bin/agate && \
addgroup \
--gid 10001 \
agate && \
adduser \
--uid 10000 \
--home /srv \
--ingroup agate \
--disabled-password \
--shell /sbin/nologin \
agate
WORKDIR /srv
USER agate
ENTRYPOINT ["agate"]