Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #223

Open
tanerozel opened this issue Sep 17, 2023 · 3 comments
Open

Dockerfile #223

tanerozel opened this issue Sep 17, 2023 · 3 comments

Comments

@tanerozel
Copy link

Dockerfile is required to run on Docker

@yoursmanjunad
Copy link

Hey, I can work on this.

@tanerozel
Copy link
Author

tanerozel commented Sep 24, 2023

@yoursmanjunad
I think it is work
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
ENV DOTNET_RUNNING_IN_CONTAINER=true
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
ENV ASPNETCORE_URLS=https://+:443;http://+:80

WORKDIR /app
EXPOSE 443
EXPOSE 80

FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs

COPY ["QuickApp/QuickApp.csproj", "QuickApp/"]
COPY ["DAL/DAL.csproj", "DAL/"]
RUN dotnet restore "QuickApp/QuickApp.csproj"
COPY . .
WORKDIR "QuickApp"
RUN dotnet build "QuickApp.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "QuickApp.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "QuickApp.dll"]

@tanerozel
Copy link
Author

@emonney @yoursmanjunad
I sended a pr for it
#225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants