RUN ln-snf /usr/share/zoneinfo/$TZ /etc/localtime &&echo$TZ> /etc/timezone
# Create /papermc and /backup directories and /web for the dynmap
RUN mkdir /papermc /backup /web
#sets permission for the cronjobs
RUN chmod 0644 /etc/cron.d/backup
#starts the service for cron
# Add papermc user and group
# Add papermc user and group, then change ownership of /papermc and /backup to this user
RUN groupadd -g${GUID}${papermc_group}
RUN useradd -g${GUID}-l-M-s /bin/false -u${GUID}${papermc_user}
RUN chown-R${GUID} /papermc/
RUN chown-R${GUID} /backup/
RUN chown-R${GUID} /web/
# Get package lists, install needed packages, then remove the package lists again (to save space)
# "webp" is needed to generate images with better compression for the dynamic map (optional, needs further configuration in dynmap-plugin´s config file)