rearranged Dockerfile statements and add remove cache after locale installation

This commit is contained in:
cuqmbr 2025-08-12 19:16:05 +03:00
parent 807e859fd8
commit 3a94541de7
Signed by: cuqmbr
GPG Key ID: 1F62396D020F375C

View File

@ -15,19 +15,22 @@ RUN mkdir ${DATA_PATH}/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=1G
ENV PROXY_SECRET=change_me
WORKDIR ${WORKDIR_PATH}/config
EXPOSE 25565/tcp
WORKDIR ${WORKDIR_PATH}/config
CMD \
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" settings.yml && \