mirror of
https://github.com/Ircama/epson_print_conf.git
synced 2025-05-09 05:32:08 -04:00

Some checks failed
Deploy Jekyll with GitHub Pages dependencies preinstalled / Build (github-pages-build gem) (push) Has been cancelled
Python syntax checker / build (3.10) (push) Has been cancelled
Python syntax checker / build (3.11) (push) Has been cancelled
Python syntax checker / build (3.12) (push) Has been cancelled
Python syntax checker / build (3.8) (push) Has been cancelled
Python syntax checker / build (3.9) (push) Has been cancelled
Python syntax checker / build (3.x) (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
* Added-dockerfile-to-create-docker-image * README-update --------- Co-authored-by: Maria Voreakou <voreakou7@gmail.com>
54 lines
995 B
Docker
54 lines
995 B
Docker
# Use the official Python slim image
|
|
FROM python:3.11-slim
|
|
|
|
# Install system dependencies including Tkinter, Xvfb, and X11 utilities
|
|
RUN apt update && apt install -y \
|
|
git \
|
|
tk \
|
|
tcl \
|
|
libx11-6 \
|
|
libxrender-dev \
|
|
libxext-dev \
|
|
libxinerama-dev \
|
|
libxi-dev \
|
|
libxrandr-dev \
|
|
libxcursor-dev \
|
|
libxtst-dev \
|
|
tk-dev \
|
|
xvfb \
|
|
x11-apps \
|
|
x11vnc \
|
|
fluxbox \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir ~/.vnc
|
|
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
|
|
|
|
COPY . .
|
|
|
|
|
|
RUN pip install --no-cache-dir \
|
|
pyyaml \
|
|
pyasn1==0.4.8 \
|
|
git+https://github.com/etingof/pysnmp.git@master#egg=pysnmp \
|
|
pyasyncore \
|
|
tkcalendar \
|
|
pyperclip \
|
|
black \
|
|
tomli \
|
|
text-console
|
|
|
|
# Set the DISPLAY environment variable for Xvfb
|
|
ENV DISPLAY=:99
|
|
|
|
COPY start.sh /start.sh
|
|
RUN chmod +x /start.sh
|
|
|
|
# Expose the VNC port
|
|
EXPOSE 5990
|
|
|
|
# Set the entrypoint to automatically run the script
|
|
ENTRYPOINT ["/start.sh"]
|