github.com/amazechain/amc@v0.1.3/Dockerfile.release (about)

     1  FROM alpine:3.15
     2  
     3  RUN apk add --no-cache ca-certificates curl tzdata
     4  
     5  COPY amazechain /usr/local/bin/
     6  
     7  ARG UID=1000
     8  ARG GID=1000
     9  RUN adduser -D -u $UID -g $GID amc
    10  
    11  
    12  ENV AMCDATA /home/amc/data
    13  # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
    14  RUN mkdir -p "$AMCDATA" && chown -R amc:amc "$AMCDATA" && chmod 777 "$AMCDATA"
    15  VOLUME /home/amc/data
    16  
    17  USER amc
    18  WORKDIR /home/amc
    19  
    20  EXPOSE 20012 20013 20014 61015/udp 61016  6060
    21  ENTRYPOINT ["amazechain"]