-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 780 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (19 loc) · 780 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
# https://hub.docker.com/_/microsoft-dotnet
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /build
COPY . /build
RUN dotnet restore ChatWatchApp.csproj
RUN dotnet publish ChatWatchApp.csproj -c release -o /app --no-restore --self-contained
# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
RUN mkdir /app
RUN adduser --disabled-password --home /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY --from=build /app /app
COPY ./pterodactyl.sh /entrypoint.sh
ENV ASPNETCORE_ENVIRONMENT=Production
ENTRYPOINT ["/usr/bin/bash", "/entrypoint.sh"]
LABEL org.opencontainers.image.source="https://github.com/raineycat/ChatWatch"
LABEL org.opencontainers.image.description="Minecraft chat monitoring server"