Skip to content

Commit

Permalink
Merge pull request #39 from markjbrown/mjb-updates
Browse files Browse the repository at this point in the history
Mjb updates
  • Loading branch information
markjbrown authored Oct 10, 2024
2 parents 97a4695 + a3eee0a commit 6ca4f4d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Use the official .NET 8 SDK image as a base
FROM mcr.microsoft.com/dotnet/sdk:8.0

# Install Azure Functions Core Tools
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
# Install dependencies
RUN apt-get update && apt-get install -y wget apt-transport-https

RUN sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
# Add Microsoft package repository and install Azure Functions Core Tools
RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg \
&& wget -qO- https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/microsoft-prod.list \
&& apt-get update \
&& apt-get install -y azure-functions-core-tools-4

RUN sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list'
# Set the working directory
WORKDIR /workspace

RUN sudo apt-get update

RUN sudo apt-get install azure-functions-core-tools-4
# Copy the project files
COPY . .

# Restore the project dependencies
RUN dotnet restore

0 comments on commit 6ca4f4d

Please sign in to comment.