anchor.diff:  RUN apk add --update-cache \
       unzip
   
  -# Download and install TShock
  +# add the bootstrap file
  +ADD bootstrap.sh /tshock/bootstrap.sh
  +
  +# Download and unpack TShock
   ADD https://github.com/Pryaxis/TShock/releases/download/v4.4.0-pre4/TShock_4.4.0_226_Pre4v2_Terraria1.4.0.2.zip /
   RUN unzip TShock_4.4.0_226_Pre4v2_Terraria1.4.0.2.zip -d /tshock && \
       rm TShock_4.4.0_226_Pre4v2_Terraria1.4.0.2.zip && \
  -    chmod +x /tshock/tshock/TerrariaServer.exe
  +    chmod +x /tshock/TerrariaServer.exe && \
  +    # add executable perm to bootstrap
  +    chmod +x /tshock/bootstrap.sh
   
  -# Add bootstrap.sh and make sure it's executable.
  -# This will be pulled into the final stage.
  -ADD bootstrap.sh .
  -RUN chmod +x bootstrap.sh
   
   FROM mono:6.8.0.96-slim
   
  
positive.code: # copy game files
  COPY --chown=terraria:terraria --from=base /tshock/* /tshock
  
  # Allow for external data
  VOLUME ["/world", "/tshock/logs", "/plugins"]
  
  # Set working directory to server
  WORKDIR /tshock
  
  USER terraria
  
  # run the bootstrap, which will copy the TShockAPI.dll before starting the server
  ENTRYPOINT [ "/bin/sh", "bootstrap.sh" ]
  
negative.code: # documenting ports
  EXPOSE 7777 7878
  
  # env used in the bootstrap
  ENV WORLDPATH=/world
  ENV CONFIGPATH=/world
  ENV LOGPATH=/tshock/logs
  
  # Allow for external data
  VOLUME ["/world", "/tshock/logs", "/plugins"]
  
  # add terraria user to run as
  RUN groupadd -r terraria && \
  