This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 myhostnet | |
docker build -t adminer . | |
docker run -p 9000:8080 --name adminer_container -d --restart always adminer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:2.2-sdk AS restore | |
WORKDIR /tmp/build | |
COPY ./*.sln . | |
COPY ./*/*.csproj ./ | |
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done | |
RUN dotnet restore | |
# Copy in the source files | |
FROM restore AS build | |
WORKDIR /tmp/build |