-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (34 loc) · 1.33 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (34 loc) · 1.33 KB
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
43
44
45
46
FROM ubuntu:25.04
LABEL org.opencontainers.image.authors="Nick Andrew <nick@nick-andrew.net>"
EXPOSE 5901
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install tigervnc-standalone-server blackbox xterm
RUN apt-get -y install libpulse0
RUN apt-get -y install command-not-found
RUN apt-get -y install wget bzip2
RUN adduser --gecos 'User Name,,,' --disabled-password user
# A timezone needs to be set before tzdata is installed.
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
RUN apt-get -y install locales
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
RUN /usr/sbin/locale-gen
# Install particular eagle dependencies
RUN apt-get -y install libnspr4 libglib2.0-0 libnss3 liboss4-salsa-asound2
RUN apt-get -y install libcups2
RUN apt-get -y install man-db
ADD vnc-passwd-abcd1234 /home/user/.vnc/passwd
RUN chown -R user:user /home/user/.vnc
RUN chmod 700 /home/user/.vnc
RUN chmod 600 /home/user/.vnc/passwd
ADD bin /home/user/bin
RUN chown -R user:user /home/user/bin
# ------------------------------------------------------------------------
# Everything under here, run as user 'user'
# ------------------------------------------------------------------------
USER user
WORKDIR /opt
ADD Autodesk_EAGLE_9.6.2_English_Linux_64bit.tar.gz /opt
RUN ls -l /tmp
RUN mkdir /home/user/eagle
WORKDIR /home/user
CMD ["/home/user/bin/start.sh"]