github.com/ethersphere/bee/v2@v2.2.0/Dockerfile.scratch (about)

     1  FROM debian:12.4-slim
     2  
     3  ENV DEBIAN_FRONTEND noninteractive
     4  
     5  RUN apt-get update && apt-get install -y --no-install-recommends \
     6          ca-certificates; \
     7      groupadd -r bee --gid 999; \
     8      useradd -r -g bee --uid 999 --no-log-init -m bee;
     9  
    10  # make sure mounted volumes have correct permissions
    11  RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
    12  
    13  FROM scratch
    14  
    15  COPY bee-slim /usr/local/bin/bee
    16  COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs
    17  COPY --from=0 /etc/passwd /etc/passwd
    18  COPY --from=0 /home /home
    19  
    20  EXPOSE 1633 1634
    21  USER bee
    22  WORKDIR /home/bee
    23  VOLUME /home/bee/.bee
    24  
    25  ENTRYPOINT ["bee"]