Skip to content
Snippets Groups Projects
Verified Commit a44c7eae authored by ornanovitch's avatar ornanovitch
Browse files

Merge branch 'dev' of forge.tedomum.net:acides/hiboo into dev

parents bc61ce8c 4363655b
No related branches found
No related tags found
No related merge requests found
FROM python:3.10 AS python_build FROM python:3.12 AS python_build
ENV POETRY_HOME=/usr/local ENV POETRY_HOME=/usr/local
COPY pyproject.toml poetry.lock ./ COPY pyproject.toml poetry.lock ./
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
python3-dev libxmlsec1 libxmlsec1-dev \ python3-dev libxmlsec1 libxmlsec1-dev \
libpq-dev libmariadb-dev \ libpq-dev libmariadb-dev \
&& rm -rf /var/cache/apt && rm -rf /var/cache/apt
RUN curl -sSL https://install.python-poetry.org | python3 - RUN curl -sSL https://install.python-poetry.org | python3 -
RUN poetry config virtualenvs.create false \ RUN poetry config virtualenvs.create false \
&& poetry install --with prod && poetry install --with prod
FROM node:buster AS assets_build FROM node:bookworm AS assets_build
COPY package-lock.json package.json webpack.config.js / COPY package-lock.json package.json webpack.config.js /
RUN npm ci RUN npm ci
COPY assets /assets COPY assets /assets
RUN /node_modules/.bin/webpack-cli RUN /node_modules/.bin/webpack-cli
FROM python:3.10-slim FROM python:3.12-slim
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
zlib1g libfreetype6 libjpeg62-turbo libopenjp2-7 libtiff6 liblcms2-2 \ zlib1g libfreetype6 libjpeg62-turbo libopenjp2-7 libtiff6 liblcms2-2 \
libpq5 libmariadb3 libxmlsec1 xmlsec1 \ libpq5 libmariadb3 libxmlsec1 xmlsec1 \
&& rm -rf /var/cache/apt \ && rm -rf /var/cache/apt \
&& mkdir /app && mkdir /app
WORKDIR /app WORKDIR /app
COPY --from=python_build /usr/local/ /usr/local/ COPY --from=python_build /usr/local/ /usr/local/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment