Skip to content

Instantly share code, notes, and snippets.

View AdnanCukur's full-sized avatar

AdnanCukur

  • Gothenburg, Sweden
  • 19:31 (UTC +01:00)
View GitHub Profile
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
version: '3'
services:
webapp:
image: webapplication
environment:
- ASPNETCORE_ENVIRONMENT=Development
build:
context: .
dockerfile: Dockerfile