Skip to content

Instantly share code, notes, and snippets.

View AdnanCukur's full-sized avatar

AdnanCukur

  • Gothenburg, Sweden
  • 22:39 (UTC +02:00)
View GitHub Profile
version: '3'
services:
webapp:
image: webapplication
environment:
- ASPNETCORE_ENVIRONMENT=Development
build:
context: .
dockerfile: Dockerfile
FROM microsoft/aspnetcore-build:1.0-2.0 AS build-env
WORKDIR /generator
COPY . ./application/
RUN dotnet restore application/WebApplicationFolder/WebApplication.csproj
WORKDIR /generator
RUN dotnet publish application/WebApplicationFolder/WebApplication.csproj -c Release -o /publish