Skip to content

Instantly share code, notes, and snippets.

@bazwilliams
Created April 23, 2016 00:15
Show Gist options
  • Save bazwilliams/c5464d7b3d23d244b2b946f32e046c8c to your computer and use it in GitHub Desktop.
Save bazwilliams/c5464d7b3d23d244b2b946f32e046c8c to your computer and use it in GitHub Desktop.
Example Dockerfile for a .Net project which uses Nancy that has been compiled with a Release configuration
FROM mono:latest
EXPOSE 8888
ADD ./bin/Release/App.exe /app/
ADD ./bin/Release/*.dll /app/
ADD ./App.config.template /app/
ADD ./bin/Release/Content /app/Content/
ADD ./bin/Release/Views /app/Views/
ADD ./bin/Release/fonts /app/fonts/
ADD ./bin/Release/Scripts /app/Scripts/
RUN apt-get update && apt-get install -y gettext-base
CMD envsubst < /app/App.config.template > /app/App.exe.config; mono /app/App.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment