Время в docker (apache)
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\
&& rm -rf /var/lib/apt/lists/*
# adding custom MS repository
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
# install libssl - required for sqlcmd to work on Ubuntu 18.04
RUN apt-get update && apt-get install -y libssl1.0.0 libssl-dev
# install SQL Server drivers
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev
# install SQL Server tools
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN /bin/bash -c "source ~/.bashrc"
# python libraries
RUN apt-get update && apt-get install -y \
python3-pip python3-dev python3-setuptools \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# install necessary locales
RUN apt-get update && apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen
RUN pip3 install --upgrade pip
# install SQL Server Python SQL Server connector module - pyodbc
RUN pip3 install pyodbc
# install additional utilities
RUN apt-get update && apt-get install gettext nano vim -y
# add sample code
WORKDIR /app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get install apache2 apache2-dev -y
RUN pip install mod_wsgi
RUN apt-get update \
&& apt-get -y install unixodbc \
&& apt-get -y install mc \
&& apt-get clean
COPY ./requirements.txt /app/requirements.txt
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
#change timezone
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install tzdata
COPY . /app
#RUN python3 manage.py collectstatic
EXPOSE 3000
ENTRYPOINT mod_wsgi-express start-server /app/avtosojuz_table/wsgi.py --user www-data --group www-data --url-alias /static static --port 3000
Добрый вечер. запускаю контейнер меняю в нем время, все гуд, после запускаю apache - у него почему-то не верное время.. целый день танцы з бубном, подскажите что не так
docker build -t avto_table .
docker run -p 3000:3000 --name avto_table avto_table