-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
26 lines (20 loc) · 902 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.10.9-slim
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/opt
ENV POETRY_VIRTUALENVS_CREATE=false
ENV QT_DEBUG_PLUGINS=0
ENV DEBIAN_FRONTEND=noninteractive
# This fix: libGL error: No matching fbConfigs or visuals found
ENV LIBGL_ALWAYS_INDIRECT=1
ENV PATH="${PATH}:/root/.gem/ruby/2.7.0/bin:/root/.local/share/gem/ruby/2.7.0/bin"
RUN apt-get update && apt-get install -y build-essential python3-pip python3-dev libldap2-dev libsasl2-dev ruby python3-pyqt5 ruby && \
gem install fpm --user-install && \
pip install pip==23.0.1 poetry && \
adduser --quiet --disabled-password qtuser && usermod -a -G audio qtuser && \
export ALINKA_VERSION=`poetry version --short` && \
export INSTALLER_FILE_NAME="alinka-${ALINKA_VERSION}.deb" && \
mkdir /opt/app
WORKDIR /opt
COPY ./app ./pyproject.toml ./poetry.lock /opt/
RUN poetry install --no-interaction --with dev
USER qtuser