content: FROM docker.io/paritytech/base-bin
  
  # metadata
  ARG VCS_REF
  ARG BUILD_DATE
  ARG IMAGE_NAME
  
  LABEL io.parity.image.authors="devops-team@parity.io" \
  	io.parity.image.vendor="Parity Technologies" \
  	io.parity.image.title="${IMAGE_NAME}" \
  	io.parity.image.description="Cumulus, the Polkadot collator." \
  	io.parity.image.source="https://github.com/paritytech/polkadot-sdk/blob/${VCS_REF}/docker/dockerfiles/polkadot-parachain/polkadot-parachain_injected.Dockerfile" \
  	io.parity.image.revision="${VCS_REF}" \
  	io.parity.image.created="${BUILD_DATE}" \
  	io.parity.image.documentation="https://github.com/paritytech/polkadot-sdk/"
  
  # show backtraces
  ENV RUST_BACKTRACE 1
  
  USER root
  
  RUN	mkdir -p /specs
  
  # add polkadot-parachain binary to the docker image
  COPY bin/* /usr/local/bin/
  COPY specs/* /specs/
  
  RUN chmod -R a+rx "/usr/local/bin"
  
  USER parity
  
  # check if executable works in this container
  RUN /usr/local/bin/polkadot-parachain --version
  
  EXPOSE 30333 9933 9944 9615
  VOLUME ["/polkadot", "/specs"]
  
  ENTRYPOINT ["/usr/local/bin/polkadot-parachain"]
  