Skip to content

Commit

Permalink
Will this fix microsoft's fails?
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaardsholt committed Mar 8, 2021
1 parent b4c01ed commit 2b9e7ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion barcoder/Controllers/HexController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public IActionResult Get(string color, int width = 300, int height = 300)
}
catch (Exception e)
{
return BadRequest($"'{color}' does not match any known color");
return BadRequest($"'{color}' does not match any known color: {e.Message}");
}
}

Expand Down
4 changes: 4 additions & 0 deletions barcoder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN dotnet publish -c Release -o /app/ -r linux-x64

# build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:5.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends libgdiplus libc6-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app .
ENV ASPNETCORE_URLS http://*:5000
Expand Down

0 comments on commit 2b9e7ff

Please sign in to comment.