Update src/BackOffice/Dockerfile
All checks were successful
Build and Deploy / build (push) Successful in 4m8s
All checks were successful
Build and Deploy / build (push) Successful in 4m8s
This commit is contained in:
@@ -7,18 +7,11 @@ COPY . .
|
|||||||
WORKDIR "/src/BackOffice"
|
WORKDIR "/src/BackOffice"
|
||||||
RUN dotnet publish "./BackOffice.csproj" -c Release -o /app/publish
|
RUN dotnet publish "./BackOffice.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
FROM nginx:alpine AS final
|
|
||||||
WORKDIR /usr/share/nginx/html
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
||||||
COPY --from=build /app/publish/wwwroot .
|
WORKDIR /app
|
||||||
COPY <<'NGINX_CONF' /etc/nginx/conf.d/default.conf
|
COPY --from=build /app/publish .
|
||||||
server {
|
ENV ASPNETCORE_URLS=http://+:8080
|
||||||
listen 80;
|
EXPOSE 8080
|
||||||
server_name _;
|
ENTRYPOINT ["dotnet", "BackOffice.dll"]
|
||||||
|
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
NGINX_CONF
|
|
||||||
EXPOSE 80
|
|
||||||
|
|||||||
Reference in New Issue
Block a user