rearranged Dockerfile statements and add remove cache after locale installation

This commit is contained in:
cuqmbr 2025-08-12 19:14:00 +03:00
parent aaff9eb3e2
commit 9f66b6701e
Signed by: cuqmbr
GPG Key ID: 1F62396D020F375C

View File

@ -57,13 +57,17 @@ RUN mkdir -p ${DATA_PATH}/FancyNpcs/logs && \
# Generate unicode locale so that cyrillic characters display properly
RUN apt-get update -y && apt-get install -y locales && \
echo en_US.UTF-8 UTF-8 > /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
dpkg-reconfigure --frontend=noninteractive locales && \
rm -Rf var/lib/apt/lists/*
ENV LANG en_US.UTF-8
VOLUME ${DATA_PATH}
EXPOSE 25565/tcp
ENV MEMORY=4G
ENV PROXY_SECRET=00000000-0000-0000-0000-000000000000
@ -84,8 +88,6 @@ ENV SKINSRESTORER_DB_PASSWORD=0000
WORKDIR ${WORKDIR_PATH}/config
EXPOSE 25565/tcp
CMD \
# Add proxy secret
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" config/paper-global.yml && \