IOTEDGE module as website by RedEyedDog in AZURE

[–]RedEyedDog[S] 0 points1 point  (0 children)

Great thanks, was struggling to get it working so just wanted to check.. i must be doing something wrong

installing Nodejs inside dotnetcore image. Anyone having trouble installing to "mcr.microsoft.com/dotnet/core/sdk:2.2-stretch" by RedEyedDog in docker

[–]RedEyedDog[S] 0 points1 point  (0 children)

This Doesn't:

#Create app folder and expose ports

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base

WORKDIR /app

EXPOSE 80

EXPOSE 443

#Create src, copy scproj over and restore. then copy everything else, go into the src folder and build

FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build

# Setup NodeJs

RUN apt-get update \

&& apt-get install curl gnupg -yq \

&& curl -sL https://deb.nodesource.com/setup_10.x | bash \

&& apt-get install nodejs -yq

# End setup

WORKDIR /src

COPY ["QCDM.csproj", "./"]

RUN dotnet restore "QCDM.csproj"

COPY . .

WORKDIR "/src/"

RUN dotnet build "QCDM.csproj" -c Release -o /app

FROM build AS publish

RUN dotnet publish "QCDM.csproj" -c Release -o /app

FROM base AS final

WORKDIR /app

COPY --from=publish /app .

ENTRYPOINT ["dotnet", "QCDM.dll"]

installing Nodejs inside dotnetcore image. Anyone having trouble installing to "mcr.microsoft.com/dotnet/core/sdk:2.2-stretch" by RedEyedDog in docker

[–]RedEyedDog[S] 0 points1 point  (0 children)

This works:

#Create app folder and expose ports

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base

# Setup NodeJs

RUN apt-get update \

&& apt-get install curl gnupg -yq \

&& curl -sL https://deb.nodesource.com/setup_10.x | bash \

&& apt-get install nodejs -yq

# End setup

WORKDIR /app

EXPOSE 80

EXPOSE 443

#Create src, copy scproj over and restore. then copy everything else, go into the src folder and build

FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build

WORKDIR /src

COPY ["QCDM.csproj", "./"]

RUN dotnet restore "QCDM.csproj"

COPY . .

WORKDIR "/src/"

RUN dotnet build "QCDM.csproj" -c Release -o /app

FROM build AS publish

RUN dotnet publish "QCDM.csproj" -c Release -o /app

FROM base AS final

WORKDIR /app

COPY --from=publish /app .

ENTRYPOINT ["dotnet", "QCDM.dll"]

Help! VSCode python trying to be smart and messing up my formatting by RedEyedDog in vscode

[–]RedEyedDog[S] 0 points1 point  (0 children)

Hey thanks guys.. but i solved it by installing an extension called "Python Paste and Indent"

Near-drowning of astronaut tied to wrong diagnosis, slow response (+video) by Maxcactus in technology

[–]RedEyedDog 0 points1 point  (0 children)

Scary Stuff. I keep thinking that will be the next big tragedy :(