-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (21 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#--------------------------------------------------------------------------------------------------
# <copyright file="Dockerfile" company="Traeger IndustryComponents GmbH">
# This file is protected by Traeger Industry Components GmbH Copyright © 2019-2020.
# </copyright>
# <author>Fabian Traeger</author>
# <author>Timo Walter</author>
#--------------------------------------------------------------------------------------------------
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS builder
LABEL maintainer=info@traeger.de
WORKDIR /app
# Copy resources and restore
COPY ./sources/ReleaseServer/ReleaseServer.WebApi .
RUN dotnet restore
# Build the app
RUN dotnet publish -c Release -o output/ReleaseServer
# TODO use the asp .net core runtime & fix the certificate issue #40
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS runtime
WORKDIR /app
COPY --from=builder /app/output ./
ADD ./defaults/appsettings.json /app/
ENTRYPOINT [ "dotnet", "ReleaseServer/ReleaseServer.WebApi.dll", "--urls", "http://0.0.0.0:5000"]