Почти доделал докерфайл для ГУЯ!

Почти доделал докерфайл для ГУЯ!

Файлов изменено: 1
+8
–20
d9f60eb
Родители be2ab1f master
d_py_gui/Dockerfile
@@ -1,29 +1,17 @@
FROM ubuntu:22.04
WORKDIR /app
COPY . .
ENV DEBIAN_FRONTEND=noninteractive
RUN adduser --quiet --disabled-password aminodov && usermod -aG sudo aminodov
# Add user
RUN adduser --quiet --disabled-password aminodov && usermod -a -G aminodov aminodov
# This fix: libGL error: No matching fbConfigs or visuals found
ENV LIBGL_ALWAYS_INDIRECT=1
RUN apt-get update
RUN apt-get install -y python3 python3-pip ffmpeg libsm6 libxext6
RUN apt-get install -y "^libxcb.*"
RUN apt-get install -y libxkbcommon-x11-0
RUN apt-get install -y libegl1-mesa
RUN apt-get install -y xauth
# Install Python 3, PyQt5
RUN apt-get update && apt-get install -y python3 python3-pip
RUN apt-get install -y ffmpeg libsm6 libxext6
RUN apt-get install -y libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxcb-shape0 libxkbcommon-x11-0 libxcb-xinerama0
RUN pip3 install PyQt5 matplotlib
RUN touch ~/.Xauthority
RUN xauth generate :0 . trusted
RUN xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
RUN xauth list
RUN cp ~/.Xauthority /root
RUN python3 -m pip install -r requirements.txt
ENTRYPOINT ["python3", "Interface.py"]
COPY . /tmp/.

Cherry-pick

Команда cherry-pick позволяет выбрать отдельные коммиты из одной ветки и применить их к другой.