wip - experimenting with Docker file

Signed-off-by: Carl Sargunar <carl@sargunar.com>
This commit is contained in:
Carl Sargunar 2022-06-01 22:25:47 +01:00
parent 4b0685f359
commit b8cbf8b999
2 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,17 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
COPY . /src
WORKDIR /src
RUN ls
RUN dotnet build "umbraco.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "umbraco.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "umbraco.dll"]

View File

@ -2,7 +2,15 @@
This sample project will start up the [Umbraco CMS](https://github.com/umbraco/Umbraco-CMS/) in a Docker container, with an attached database container running SQL Server.
*Note: The current version is released using version 9 of the CMS, but that will be updated to version 10 after the [2022 Codegarden conference](http://codegarden.umbraco.com/), when version 10 will be launced officially.*
## Project Structure
## crap below
docker build --tag=umbraco .\umbraco
docker run --name umbraco -p 8000:80 -v media:/app/wwwroot/media -v logs:/app/umbraco/Logs -e -d umbraco
docker run --name umbraco -p 8000:80 -d umbraco