slimshadow commited on
Commit
04e18d6
·
verified ·
1 Parent(s): 590355a

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -32
Dockerfile DELETED
@@ -1,32 +0,0 @@
1
- # Base image with Python 3.9
2
- FROM python:3.9
3
-
4
- # Create a new user and switch to that user
5
- RUN useradd -m -u 1000 user
6
- USER user
7
- ENV PATH="/home/user/.local/bin:$PATH"
8
-
9
- # Set working directory
10
- WORKDIR /app
11
-
12
- # Install additional dependencies for running a lightweight browser
13
- USER root
14
- RUN apt-get update && \
15
- apt-get install -y --no-install-recommends \
16
- midori \
17
- xvfb \
18
- x11vnc \
19
- && rm -rf /var/lib/apt/lists/*
20
-
21
- # Set up VNC password
22
- RUN mkdir -p /home/user/.vnc && \
23
- echo "1234" | vncpasswd -f > /home/user/.vnc/passwd && \
24
- chown -R user:user /home/user/.vnc && \
25
- chmod 600 /home/user/.vnc/passwd
26
-
27
- # Switch back to the user
28
- USER user
29
-
30
- # Start the browser (Midori) with a virtual display and VNC
31
- CMD xvfb-run -s "-screen 0 1024x768x16" x11vnc -forever -usepw -create & \
32
- midori