Add timezone configuration

This commit is contained in:
wpetit 2018-11-24 09:57:14 +01:00
parent a22b77b3ef
commit b3bcb6fca8
3 changed files with 7 additions and 3 deletions

View File

@ -5,12 +5,18 @@ ARG HTTPS_PROXY=
ARG http_proxy= ARG http_proxy=
ARG https_proxy= ARG https_proxy=
ARG FDROIDSERVER_VERSION=1.0.10 ARG FDROIDSERVER_VERSION=1.0.10
ARG TIMEZONE=Europe/Paris
RUN apk add --no-cache \ RUN apk add --no-cache \
python3 build-base freetype-dev libffi-dev \ python3 build-base freetype-dev libffi-dev \
libpng-dev py3-setuptools python3-dev libxml2-dev \ libpng-dev py3-setuptools python3-dev libxml2-dev \
libxslt-dev openssl-dev jpeg-dev java-common \ libxslt-dev openssl-dev jpeg-dev java-common \
bash supervisor openssh inotify-tools gettext openjdk8 fastjar caddy bash supervisor openssh inotify-tools gettext \
openjdk8 fastjar caddy tzdata
RUN cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
&& echo "${TIMEZONE}" > /etc/timezone \
&& apk del tzdata
RUN ln -s /usr/bin/fastjar /usr/bin/jar RUN ln -s /usr/bin/fastjar /usr/bin/jar
RUN ln -s /usr/include/libxml2 /usr/include/libxml RUN ln -s /usr/include/libxml2 /usr/include/libxml

View File

@ -16,7 +16,6 @@ run:
-v "$(PWD)/data/repo:/fdroid/repo" \ -v "$(PWD)/data/repo:/fdroid/repo" \
-v "$(PWD)/data/metadata:/fdroid/metadata" \ -v "$(PWD)/data/metadata:/fdroid/metadata" \
-v "$(PWD)/data/keystore:/fdroid/keystore" \ -v "$(PWD)/data/keystore:/fdroid/keystore" \
-v "/etc/localtime:/etc/localtime:ro" \
-e "FDROID_REPO_HOST=0.0.0.0" \ -e "FDROID_REPO_HOST=0.0.0.0" \
-e "FDROID_REPO_NAME=My local repo" \ -e "FDROID_REPO_NAME=My local repo" \
-e "FDROID_REPO_DESCRIPTION=My repo description" \ -e "FDROID_REPO_DESCRIPTION=My repo description" \

View File

@ -14,7 +14,6 @@ docker run -it -d \
-v "${PWD}/data/repo:/fdroid/repo" \ -v "${PWD}/data/repo:/fdroid/repo" \
-v "${PWD}/data/metadata:/fdroid/metadata" \ -v "${PWD}/data/metadata:/fdroid/metadata" \
-v "${PWD}/data/keystore:/fdroid/keystore" \ -v "${PWD}/data/keystore:/fdroid/keystore" \
-v "/etc/localtime:/etc/localtime:ro" \
-e "FDROID_REPO_HOST=${REPO_HOST}" \ -e "FDROID_REPO_HOST=${REPO_HOST}" \
-e "FDROID_REPO_EMAIL=${REPO_EMAIL}" \ -e "FDROID_REPO_EMAIL=${REPO_EMAIL}" \
-e "FDROID_REPO_NAME=${REPO_NAME}" \ -e "FDROID_REPO_NAME=${REPO_NAME}" \