mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
952df3d324
This adds basic configuration for Renovate, and sets up most services for automated updates to package versions.
42 lines
1.5 KiB
Docker
42 lines
1.5 KiB
Docker
FROM docker.io/rust:1.73 AS builder
|
|
# renovate: datasource=github-releases depName=lldap/lldap
|
|
ARG VERSION=v0.5.0
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
git gzip wget
|
|
|
|
RUN cargo install wasm-pack && rustup target add wasm32-unknown-unknown
|
|
|
|
RUN git clone https://github.com/lldap/lldap.git /lldap && \
|
|
cd /lldap && git reset --hard ${VERSION} && \
|
|
cargo build --release -p lldap \
|
|
-p lldap_migration_tool \
|
|
-p lldap_set_password
|
|
|
|
RUN /lldap/app/build.sh && cd /lldap/app/static && \
|
|
for file in $(cat libraries.txt); do wget "$file"; done && \
|
|
for file in $(cat fonts/fonts.txt); do wget -P fonts "$file"; done
|
|
|
|
FROM docker.io/debian:bookworm-slim
|
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
gettext gosu
|
|
|
|
RUN addgroup --system --gid 10000 lldap
|
|
RUN adduser --system --uid 10000 --ingroup lldap --home /var/lib/lldap lldap
|
|
RUN mkdir -p /opt/lldap/app
|
|
|
|
COPY --from=builder /lldap/app/index_local.html /opt/lldap/app/index.html
|
|
COPY --from=builder /lldap/app/static /opt/lldap/app/static
|
|
COPY --from=builder /lldap/app/pkg /opt/lldap/app/pkg
|
|
COPY --from=builder /lldap/target/release/lldap \
|
|
/lldap/target/release/lldap_migration_tool \
|
|
/lldap/target/release/lldap_set_password \
|
|
/opt/lldap/
|
|
|
|
COPY container/config /etc/lldap
|
|
COPY container/run-lldap /run-lldap
|
|
|
|
EXPOSE 3890 8080
|
|
ENTRYPOINT ["/run-lldap"]
|