rearranged Dockerfile statements and add remove cache after locale installation
This commit is contained in:
parent
807e859fd8
commit
3a94541de7
@ -15,19 +15,22 @@ RUN mkdir ${DATA_PATH}/logs && \
|
|||||||
# Generate unicode locale so that cyrillic characters display properly
|
# Generate unicode locale so that cyrillic characters display properly
|
||||||
RUN apt-get update -y && apt-get install -y locales && \
|
RUN apt-get update -y && apt-get install -y locales && \
|
||||||
echo en_US.UTF-8 UTF-8 > /etc/locale.gen && \
|
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
|
ENV LANG en_US.UTF-8
|
||||||
|
|
||||||
|
|
||||||
VOLUME ${DATA_PATH}
|
VOLUME ${DATA_PATH}
|
||||||
|
|
||||||
|
|
||||||
|
EXPOSE 25565/tcp
|
||||||
|
|
||||||
|
|
||||||
ENV MEMORY=1G
|
ENV MEMORY=1G
|
||||||
ENV PROXY_SECRET=change_me
|
ENV PROXY_SECRET=change_me
|
||||||
|
|
||||||
WORKDIR ${WORKDIR_PATH}/config
|
|
||||||
|
|
||||||
EXPOSE 25565/tcp
|
WORKDIR ${WORKDIR_PATH}/config
|
||||||
|
|
||||||
CMD \
|
CMD \
|
||||||
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" settings.yml && \
|
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" settings.yml && \
|
||||||
|
Loading…
Reference in New Issue
Block a user