2022-06-30 01:09:51 +03:00
|
|
|
FROM python:3.8-buster
|
2021-07-11 12:53:33 +03:00
|
|
|
|
2022-01-18 03:21:28 +03:00
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
2022-06-25 01:04:38 +03:00
|
|
|
POETRY_VERSION=1.1.12 \
|
2022-01-18 03:21:28 +03:00
|
|
|
POETRY_VIRTUALENVS_CREATE="false"
|
|
|
|
|
2022-03-22 05:43:10 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y gettext build-essential && \
|
|
|
|
apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
|
|
|
|
|
|
|
|
|
2022-01-18 03:21:28 +03:00
|
|
|
RUN pip install "poetry==$POETRY_VERSION"
|
2021-07-11 12:53:33 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-01-18 03:21:28 +03:00
|
|
|
COPY pyproject.toml poetry.lock docker-entrypoint.sh ./
|
|
|
|
RUN poetry install --no-interaction --no-ansi --no-dev
|
|
|
|
|
|
|
|
COPY . /app
|
2021-07-11 12:53:33 +03:00
|
|
|
|
2022-03-22 05:43:10 +03:00
|
|
|
RUN msgfmt locales/zh/LC_MESSAGES/olgram.po -o locales/zh/LC_MESSAGES/olgram.mo --use-fuzzy
|
2022-04-09 07:15:27 +03:00
|
|
|
RUN msgfmt locales/uk/LC_MESSAGES/olgram.po -o locales/uk/LC_MESSAGES/olgram.mo --use-fuzzy
|
2022-04-11 18:16:00 +03:00
|
|
|
RUN msgfmt locales/en/LC_MESSAGES/olgram.po -o locales/en/LC_MESSAGES/olgram.mo --use-fuzzy
|
2022-03-22 05:43:10 +03:00
|
|
|
|
2021-09-09 23:51:58 +03:00
|
|
|
EXPOSE 80
|
|
|
|
|
2021-07-11 12:53:33 +03:00
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|