-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (41 loc) · 1.24 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM lnlssol/debian9-epicsbase
RUN apt-get update
RUN apt-get install wget git vim -y
RUN apt-get install bzip2 sshpass -y
### Python 3
RUN apt-get install python3 python3-pip -y
### Packages for qt5 and designer
RUN apt-get install qt5-default qttools5-dev-tools -y
### PyQt5
WORKDIR /root/
COPY installpyqt5.sh /root/
RUN /root/installpyqt5.sh
COPY installpydm.sh /root/
RUN /root/installpydm.sh
COPY installpy4syn.sh /root/
RUN /root/installpy4syn.sh
COPY installscanutils.sh /root/
RUN /root/installscanutils.sh
COPY installpyqtargs.sh /root/
RUN /root/installpyqtargs.sh
COPY installsolutils.sh /root/
RUN /root/installsolutils.sh
COPY installsolwidgets.sh /root/
RUN /root/installsolwidgets.sh
## clean
RUN apt-get clean
RUN rm -rf /tmp/*
RUN ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
ARG USER_ID
ARG GROUP_ID
ARG USER
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
groupadd -g ${GROUP_ID} "domain^users" &&\
useradd -l -u ${USER_ID} -g "domain^users" ${USER} &&\
mkdir /home/${USER} &&\
chown -R ${USER}:"domain^users" /home/${USER}\
;fi
WORKDIR /home/${USER}
USER ${USER}
RUN echo "export PS1='${debian_chroot:+($debian_chroot)}\u@docker:\w\$ ' " > .bashrc
CMD bash