Skip to content

Commit

Permalink
Update API docker image tag (#134)
Browse files Browse the repository at this point in the history
* Update API docker image tag

* fix the build
  • Loading branch information
omerlh authored Mar 28, 2019
1 parent 2c09eab commit e69cf23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM microsoft/dotnet:2.2-sdk AS build-env
FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env

ARG PROJECT_NAME=decrypt-api

Expand All @@ -15,12 +15,12 @@ COPY ./src/key-managment ./key-managment
RUN dotnet publish $PROJECT_NAME/$PROJECT_NAME.csproj -c Release -o ./obj/Docker/publish

# Build runtime image
FROM microsoft/dotnet:2.2.1-aspnetcore-runtime-alpine as release
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2.3-alpine AS release
ARG PROJECT_NAME=decrypt-api
ENV PROJECT_NAME_ENV=$PROJECT_NAME
RUN addgroup dotnet && adduser -D -G dotnet -h /home/dotnet dotnet
USER dotnet
WORKDIR /home/dotnet/app
ENV ASPNETCORE_URLS=http://+:9999
COPY --from=build-env /app/$PROJECT_NAME/obj/Docker/publish .
ENTRYPOINT dotnet $PROJECT_NAME_ENV.dll
ENTRYPOINT dotnet $PROJECT_NAME_ENV.dll
2 changes: 1 addition & 1 deletion src/decrypt-api/decrypt-api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Version>0.2.1.0</Version>
<Version>0.2.2.0</Version>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
Expand Down
2 changes: 1 addition & 1 deletion src/encrypt-api/encrypt-api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Version>0.2.1.0</Version>
<Version>0.2.2.0</Version>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
Expand Down

0 comments on commit e69cf23

Please sign in to comment.