-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.42 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
FROM labeg/centos-lxqt-vnc:43
ENV DONT_PROMPT_WSL_INSTALL=true
LABEL maintainer="labeg@mail.ru" \
io.k8s.description="Container with tools for development C# and Typescript applications" \
io.k8s.display-name="Container with C# ant Typescript" \
io.openshift.expose-services="5901:xvnc" \
io.openshift.tags="c#, typescript, vnc, centos, lxqt" \
io.openshift.non-scalable=true
USER root
# dotnet vscode nodejs
RUN sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
RUN dnf install -y geany git code falkon dotnet-sdk-9.0 nodejs \
&& \
npm install -g typescript npm-check-updates \
&& \
dotnet --version && node -v && tsc -v \
&& \
chown headless:headless -R ${HOME} \
&& \
dnf clean all \
&& \
rm -rf /var/cache/dnf/*
# add vscode icon to quicklaunch
RUN echo 'apps\3\desktop=/usr/share/applications/code.desktop' >> ${HOME}/.config/lxqt/panel.conf
RUN sed -i 's|/usr/share/code/code|/usr/share/code/code --no-sandbox|g' /usr/share/applications/code.desktop
USER headless
RUN code --install-extension dbaeumer.vscode-eslint && \
code --install-extension visualstudioexptteam.vscodeintellicode && \
code --install-extension ms-dotnettools.csdevkit