-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 578 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 578 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Build
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
# Change directory and copy all files
WORKDIR /src
COPY Source/ .
# Restore solution packages
RUN dotnet restore
# Build API-Service
RUN dotnet build SmartMirror/SmartMirror.csproj -c Release -o /app --no-restore
# Publish API-Service
RUN dotnet publish SmartMirror/SmartMirror.csproj -c Release -o /app --no-restore -r linux-arm
## Base
# 3.1.4-buster-slim-arm32v7
FROM mcr.microsoft.com/dotnet/runtime:7.0-bullseye-slim-arm32v7 AS base
WORKDIR /app
COPY --from=build /app .
ENTRYPOINT ["dotnet", "SmartMirror.dll"]