Created
April 23, 2016 00:15
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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