flower-story/Server/Dockerfile
2024-10-12 14:34:11 +08:00

14 lines
385 B
Docker

#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:8.0
RUN apt-get update && apt-get install -y libfontconfig1
COPY . /app
WORKDIR /app
EXPOSE 5180
ARG UID=1026
ARG GID=100
RUN useradd -m -u ${UID} tsanie
USER ${UID}:${GID}
ENTRYPOINT ["dotnet", "Server.dll"]