-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (46 loc) · 2.08 KB
/
Dockerfile
File metadata and controls
50 lines (46 loc) · 2.08 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 2022 Raising the Floor - US, Inc.
#
# Licensed under the New BSD license. You may not use this file except in
# compliance with this License.
#
# You may obtain a copy of the License at
# https://github.com/raisingthefloor/morphic-api-server/blob/master/LICENSE.md
#
# The R&D leading to these results received funding from the:
# * Rehabilitation Services Administration, US Dept. of Education under
# grant H421A150006 (APCP)
# * National Institute on Disability, Independent Living, and
# Rehabilitation Research (NIDILRR)
# * Administration for Independent Living & Dept. of Education under grants
# H133E080022 (RERC-IT) and H133E130028/90RE5003-01-00 (UIITA-RERC)
# * European Union's Seventh Framework Programme (FP7/2007-2013) grant
# agreement nos. 289016 (Cloud4all) and 610510 (Prosperity4All)
# * William and Flora Hewlett Foundation
# * Ontario Ministry of Research and Innovation
# * Canadian Foundation for Innovation
# * Adobe Foundation
# * Consumer Electronics Association Foundation
#see: https://github.com/dotnet/dotnet-docker/blob/main/README.sdk.md & https://mcr.microsoft.com/artifact/mar/dotnet/sdk/tags
ARG SDK_VERSION=10.0.101-alpine3.23
#
#see: https://github.com/dotnet/dotnet-docker/blob/main/README.aspnet.md & https://mcr.microsoft.com/artifact/mar/dotnet/aspnet/tags
ARG ASPNET_VERSION=10.0.1-alpine3.23
FROM mcr.microsoft.com/dotnet/sdk:${SDK_VERSION} AS build-env
WORKDIR /app
# copy and build
COPY ./MorphicServer.sln .
COPY ./Morphic.Server.Settings/ ./Morphic.Server.Settings/
COPY ./Morphic.Server/ ./Morphic.Server/
COPY ./Morphic.Server.Tests/ ./Morphic.Server.Tests/
COPY ./Morphic.Security/ ./Morphic.Security/
COPY ./Morphic.Security.Tests/ ./Morphic.Security.Tests/
COPY ./Morphic.Json/ ./Morphic.Json/
COPY ./Morphic.Json.Tests/ ./Morphic.Json.Tests/
RUN dotnet publish -c Release -o Morphic.Server
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:${ASPNET_VERSION} AS runtime
RUN apk update && apk upgrade
WORKDIR /app
COPY --from=build-env /app/Morphic.Server/ ./
COPY Morphic.Server/appsettings.* ./
ENTRYPOINT ["dotnet", "Morphic.Server.dll"]