Commit 3bd26234 authored by David Foucher's avatar David Foucher

Docker datetimezone

parent 39d84fcf
...@@ -2,13 +2,15 @@ FROM python:3.6 ...@@ -2,13 +2,15 @@ FROM python:3.6
LABEL MAINTAINER "labonneformation@pole-emploi.fr" LABEL MAINTAINER "labonneformation@pole-emploi.fr"
ENV TZ=Europe/Paris
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV PYTHON_VERSION 3.6 ENV PYTHON_VERSION 3.6
ENV TREFLE_LOG_DIR /srv/log ENV TREFLE_LOG_DIR /srv/log
ARG TREFLE_VERSION ARG TREFLE_VERSION
ARG TREFLE_GIT ARG TREFLE_GIT
RUN apt-get update && apt-get -y install \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get update && apt-get -y install \
software-properties-common\ software-properties-common\
unzip \ unzip \
vim \ vim \
......
...@@ -17,10 +17,12 @@ LABEL maintainer="labonneformation@pole-emploi.fr" ...@@ -17,10 +17,12 @@ LABEL maintainer="labonneformation@pole-emploi.fr"
ENV LANG C.UTF-8 ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Europe/Paris
RUN apt-get update && apt-get -y install \ RUN apt-get update && apt-get -y install \
apt-utils\ apt-utils\
software-properties-common\ software-properties-common\
tzdata \
unzip \ unzip \
nginx \ nginx \
vim \ vim \
...@@ -39,7 +41,8 @@ COPY --from=back_app_node /srv/trefle/trefle/explorer /srv/trefle/legacy-backoff ...@@ -39,7 +41,8 @@ COPY --from=back_app_node /srv/trefle/trefle/explorer /srv/trefle/legacy-backoff
ARG TREFLE_GIT ARG TREFLE_GIT
ARG TREFLE_OLD_VERSION ARG TREFLE_OLD_VERSION
RUN git clone -b ${TREFLE_OLD_VERSION} ${TREFLE_GIT} /srv/trefle-old && \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
git clone -b ${TREFLE_OLD_VERSION} ${TREFLE_GIT} /srv/trefle-old && \
chown -R www-data: /srv/trefle-old && \ chown -R www-data: /srv/trefle-old && \
chmod -R u+rwx /srv/trefle-old chmod -R u+rwx /srv/trefle-old
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment