Skip to content

Instantly share code, notes, and snippets.

View nickcoad's full-sized avatar
😅

Nick Coad nickcoad

😅
View GitHub Profile
@nickcoad
nickcoad / Dockerfile
Created June 13, 2019 08:25
Cacheable restores dotnet core
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
@nickcoad
nickcoad / Docker command
Last active June 7, 2019 05:33
Adminer Dockerfile with custom css.
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