Created
December 22, 2014 22:56
-
-
Save bjackson/fd36a69d5eb098c0f798 to your computer and use it in GitHub Desktop.
Mono, private git repo Dockerfile
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 microsoft/aspnet:latest | |
MAINTAINER Brett Jackson "brett@brettjackson.org" | |
# Update aptitude with new repo | |
RUN apt-get update | |
# Install software | |
RUN apt-get install -y git wget | |
# Make ssh dir | |
RUN mkdir /root/.ssh/ | |
# Copy over private key, and set permissions | |
ADD docker/id_rsa /root/.ssh/id_rsa | |
RUN chmod 700 /root/.ssh/id_rsa | |
# Create known_hosts | |
RUN touch /root/.ssh/known_hosts | |
# Add bitbuckets key | |
RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts | |
# Clone the conf files into the docker container | |
RUN git clone git@bitbucket.org:chiefex/Gateway.git | |
RUN cd Gateway && \ | |
wget http://www.nuget.org/nuget.exe | |
RUN cd Gateway && mono ./nuget.exe restore Gateway.sln -NonInteractive | |
RUN cd Gateway && xbuild /p:Configuration=Release | |
CMD cd Gateway/Gateway/bin/Release/ && \ | |
mono Gateway.exe ../../fix.cfg | |
EXPOSE 5001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment