Skip to content

Commit

Permalink
Specifiy docker Debian base images
Browse files Browse the repository at this point in the history
  • Loading branch information
NhatTanVu committed Jan 24, 2021
1 parent d04ecf4 commit 9233a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MyAlbum.Docker/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as publish
FROM mcr.microsoft.com/dotnet/sdk:3.1-buster as publish
WORKDIR /src
# update
RUN apt-get update
Expand Down Expand Up @@ -37,7 +37,7 @@ RUN rm -rf "/app/tr"
RUN rm -rf "/app/zh-Hans"
RUN rm -rf "/app/zh-Hant"

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as final
FROM mcr.microsoft.com/dotnet/aspnet:3.1-buster-slim as final
WORKDIR /app
RUN apt-get update && apt-get install -y libgdiplus
RUN apt-get update && apt-get install -y libgomp1
Expand Down

0 comments on commit 9233a70

Please sign in to comment.