github.com/ethersphere/bee/v2@v2.2.0/Dockerfile.goreleaser (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      apt-get clean; \
     8      rm -rf /var/lib/apt/lists/*; \
     9      groupadd -r bee --gid 999; \
    10      useradd -r -g bee --uid 999 --no-log-init -m bee;
    11  
    12  # make sure mounted volumes have correct permissions
    13  RUN mkdir -p /home/bee/.bee && chown 999:999 /home/bee/.bee
    14  
    15  COPY bee /usr/local/bin/bee
    16  
    17  EXPOSE 1633 1634
    18  USER bee
    19  WORKDIR /home/bee
    20  VOLUME /home/bee/.bee
    21  
    22  ENTRYPOINT ["bee"]