This commit is contained in:
2023-08-08 17:15:43 +08:00
parent 697631c8d3
commit ac250ea779
13 changed files with 303 additions and 61 deletions

View File

@ -1,8 +1,14 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:7.0
RUN apt-get update && apt-get install -y libfontconfig1
COPY . /app
WORKDIR /app
EXPOSE 80
EXPOSE 5180
ARG UID=1026
ARG GID=100
RUN useradd -m -u ${UID} tsanie
USER ${UID}:${GID}
ENTRYPOINT ["dotnet", "Server.dll"]