Skip to content

Instantly share code, notes, and snippets.

@bogdanbujdea
Created February 22, 2019 09:53
Show Gist options
  • Select an option

  • Save bogdanbujdea/dfb55cddf0b3f82f8b78d514b135a58c to your computer and use it in GitHub Desktop.

Select an option

Save bogdanbujdea/dfb55cddf0b3f82f8b78d514b135a58c to your computer and use it in GitHub Desktop.
Sample dockerfile with only one stage
FROM microsoft/dotnet AS build-env
COPY . /app
RUN ["dotnet", "--info"]
WORKDIR /app/MyApp
RUN ["dotnet", "publish", "--configuration", "Release"]
EXPOSE 80/tcp
ENTRYPOINT ["dotnet", "run"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment