Skip to content

Commit

Permalink
Add GitVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7878 committed Feb 22, 2024
1 parent ea46f75 commit 1e49a07
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3
RUN pip install requests
RUN pip install requests

# Install latest dotnet for vscode user
RUN apt update
WORKDIR /home/vscode
RUN sudo -S -u vscode wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
RUN sudo -S -u vscode chmod +x ./dotnet-install.sh
RUN sudo -S -u vscode ./dotnet-install.sh --version latest

# Install GitVersion
RUN sudo -S -u vscode /home/vscode/.dotnet/dotnet tool install --global GitVersion.Tool --version 5.*
RUN sudo -S -u vscode echo 'export DOTNET_ROOT=$HOME/.dotnet' >> /home/vscode/.bashrc
RUN sudo -S -u vscode echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> /home/vscode/.bashrc

0 comments on commit 1e49a07

Please sign in to comment.