Files
rmutr_report/Dockerfile
kamonwan taengsuk 965469e1df
All checks were successful
continuous-integration/drone/push Build is passing
Bug Fixed
2025-08-06 13:40:31 +07:00

17 lines
792 B
Docker

FROM registry.71dev.com/dotnetsdk:8.0 as build-env
WORKDIR /source
COPY . .
RUN dotnet restore --configfile nuget.config
RUN dotnet publish -o /publish --configuration Release
FROM registry.71dev.com/dotnetaspnet:8.0
WORKDIR /app
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated libc6-dev libgdiplus libx11-dev
RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/*
COPY --from=build-env /publish .
RUN mkdir -p /usr/local/share/fonts/fonts/sarabun
COPY Fonts/* /usr/local/share/fonts/sarabun/
RUN chmod 644 /usr/local/share/fonts/sarabun/*
ENV ASPNETCORE_URLS http://*:8080
ENTRYPOINT ["dotnet", "rmutr_report.dll"]