forked from JoyfulReaper/MissionControl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.archive
More file actions
34 lines (23 loc) · 755 Bytes
/
Copy pathDockerfile.archive
File metadata and controls
34 lines (23 loc) · 755 Bytes
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
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore \
MissionControl.Archive/MissionControl.Archive.csproj
RUN dotnet publish \
MissionControl.Archive/MissionControl.Archive.csproj \
--configuration Release \
--output /app/publish \
--no-restore \
/p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080 \
EventArchive__DatabaseFileName=mission-control.db \
EventArchive__BasePath=/app/data
VOLUME ["/app/data"]
EXPOSE 8080
ENTRYPOINT ["dotnet", "MissionControl.Archive.dll"]