Skip to content
Snippets Groups Projects
Commit 95787e5c authored by Vincent Texier's avatar Vincent Texier
Browse files

Initial commit

parents
Branches
Tags
No related merge requests found
FROM python:3.7-slim-buster
# Install system requirements
RUN apt-get update && apt-get install --yes curl libsodium23 make gettext binutils zip libgtk-3.0 libnotify4 libSDL2-2.0 xvfb \
&& apt-get autoclean && apt-get autoremove && rm -rf /var/lib/apt/lists
# Set X display port
ENV DISPLAY :99
# Install Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
ENV PATH="/root/.local/bin:$PATH"
# Virtualenv is useless in Docker
RUN poetry config virtualenvs.create false
# Install wxPython binaries
RUN /root/.local/share/pypoetry/venv/bin/python -m pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/debian-10 wxPython
# Add virtual X buffer start script
ADD start.sh /start.sh
RUN chmod u+x /start.sh
# Start virtual X buffer
CMD /start.sh
This diff is collapsed.
Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment