33 lines
1.0 KiB
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
2024-04-10 13:15:46 -05:00
#####################
#PUPPETEER RECIPE
#####################
RUN apt-get update && apt-get -f install && apt-get -y install wget gnupg2 apt-utils
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y google-chrome-stable --no-install-recommends --allow-downgrades fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf
######################
#END PUPPETEER RECIPE
######################
ENV PUPPETEER_EXECUTABLE_PATH "/usr/bin/google-chrome-stable"
WORKDIR /app
EXPOSE 80
EXPOSE 443
2024-04-10 13:15:46 -05:00
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2024-04-10 13:15:46 -05:00
WORKDIR /app
2024-04-10 13:15:46 -05:00
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o out
2024-04-10 13:15:46 -05:00
FROM base AS final
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "AAIntegration.SimmonsBank.API.dll"]