-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
40 lines (31 loc) · 2.08 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
# For details on usage and latest versions, see:
# https://mcr.microsoft.com/en-us/product/devcontainers/dotnet/about
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:8.0-bookworm
# For dotnet-adr - currently non-functional due to https://github.com/endjin/dotnet-adr/issues/203
# # Install other dotnet versions (required for adr tool and dotnet suggest)
# RUN curl -sSL https://dot.net/v1/dotnet-install.sh > /tmp/dotnet-install.sh \
# && chmod u+x /tmp/dotnet-install.sh
# RUN sudo /tmp/dotnet-install.sh --install-dir /usr/share/dotnet --channel 6.0 --runtime dotnet
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="lts/*"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
# These are for running vscode insiders in the background to execeute extension tests
xvfb libgtk-3-0 libnss3-dev libgbm-dev libasound2 libcanberra-gtk-module libcanberra-gtk3-module
# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
COPY setup_tools.sh /tmp/setup_tools.sh
RUN chmod +x /tmp/setup_tools.sh && su - vscode -c "/tmp/setup_tools.sh >> /tmp/setup_tools.log"
# This must be last in the .bashrc to ensure the paths are adjusted earlier
# the `tr -d '\015' is to workaround https://github.com/dotnet/command-line-api/pull/2186
# it can be removed when they release a version higher than 1.1.415701
# Temporarily removing this script, as it doesn't seem to work with any
# of the currently used dotnet tools. Try again when there is a version
# higher than 1.1.415701
# RUN su - vscode -c "dotnet-suggest script bash | tr -d '\015' >> ~/.bashrc"
COPY post_start_command.sh /home/vscode/post_start_command.sh
RUN chmod +x /home/vscode/post_start_command.sh
ENV CONTEXTIVE_DEBUG=true
ENV DISPLAY=:99