-
-
Save Thorium/ce64e00027c7dc8d2cb9 to your computer and use it in GitHub Desktop.
Dockerfile to start F# Owin project
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 ubuntu:14.04 | |
RUN apt-get -y update | |
# Install Mono (and fsharp) | |
RUN apt-get -y install mono-devel autoconf pkg-config make git libtool | |
RUN git clone https://github.com/fsharp/fsharp | |
RUN cd fsharp && ./autogen.sh --prefix /usr && make && make install | |
# Add some files | |
ADD /bin/*.* /bin/ | |
ADD wwwroot/**/*.* /wwwroot/ | |
# Open some port | |
EXPOSE 8080 | |
# Start the OWIN web-server | |
CMD [ "mono", "./bin/myTestProject.exe" ] | |
# Build and run: | |
# boot2docker up | |
# $(boot2docker shellinit 2> /dev/null) | |
# docker build -t user/repo . | |
# docker run -d -p 5001:8080 --name=webserver -i user/repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment