Commit 52039d2b authored by Jason Ouellet's avatar Jason Ouellet

Remettre le Dockerfile en place

parent f6a51163
FROM dotnet:2.2
WORKDIR /app
EXPOSE 8080
EXPOSE 443
FROM dotnet:2.2
WORKDIR /src
COPY ["Here.Api/Here.Api.csproj", "Here.Api/"]
COPY ["Here.Core/Here.Core.csproj", "Here.Core/"]
RUN dotnet restore "Here.Api/Here.Api.csproj"
COPY . .
WORKDIR "/src/Here.Api"
RUN dotnet build "Here.Api.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Here.Api.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN chown -R 1001:0 /app
USER 1001
ENTRYPOINT ["dotnet", "Here.Api.dll"]
......@@ -7,6 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.dockerignore = .dockerignore
.gitignore = .gitignore
Dockerfile = Dockerfile
README.md = README.md
EndProjectSection
EndProject
......@@ -22,14 +23,14 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9955111C-1D4E-4903-979F-7376543561E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Release|Any CPU.Build.0 = Release|Any CPU
{3023A928-B82B-4482-939F-EF668696CD7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3023A928-B82B-4482-939F-EF668696CD7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3023A928-B82B-4482-939F-EF668696CD7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3023A928-B82B-4482-939F-EF668696CD7C}.Release|Any CPU.Build.0 = Release|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9955111C-1D4E-4903-979F-7376543561E3}.Release|Any CPU.Build.0 = Release|Any CPU
{020AC9E4-E80F-4313-9196-9F2ECED2D68E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{020AC9E4-E80F-4313-9196-9F2ECED2D68E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{020AC9E4-E80F-4313-9196-9F2ECED2D68E}.Release|Any CPU.ActiveCfg = Release|Any CPU
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment