-
Notifications
You must be signed in to change notification settings - Fork 0
/
excel.dockerfile
42 lines (30 loc) · 960 Bytes
/
excel.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Use an official Python image as the base image
FROM python:3.8-slim-buster
# Install necessary system libraries including tkinter
RUN apt-get update && apt-get install -y \
python3-tk \
libgtk-3-0 \
xfce4 \
tightvncserver \
xfonts-base \
x11-xserver-utils
# Set the VNC password
RUN mkdir -p ~/.vnc && echo "inert" | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd
# Set the display resolution
RUN echo "geometry=1920x1080" >> ~/.vnc/xstartup
# Expose the VNC port
EXPOSE 5902
# Set the environment variable for Xfce
ENV DEBIAN_FRONTEND=noninteractive
# Set the USER environment variable
ENV USER=root
# Create the Xauthority file
RUN touch /root/.Xauthority
# Set the working directory inside the container
WORKDIR /app
# Copy the application files into the container
COPY . /app
# Install your Python dependencies using pip
RUN pip install -r requirements.txt
# Start the VNC server
CMD ["tightvncserver", ":2"]