Skip to content

Instantly share code, notes, and snippets.

@Thorium
Forked from junosuarez/Dockerfile
Last active August 29, 2015 14:24
Show Gist options
  • Save Thorium/ce64e00027c7dc8d2cb9 to your computer and use it in GitHub Desktop.
Save Thorium/ce64e00027c7dc8d2cb9 to your computer and use it in GitHub Desktop.
Dockerfile to start F# Owin project
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