forked from OrchardCMS/OrchardCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 822 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:14.04
MAINTAINER Jasmin Savard
#1 Update and install basic packages needed
RUN sudo apt-get update
RUN sudo apt-get install -y gettext zip unzip git uuid-runtime
#2 Add the new apt-get feed
RUN sudo sh -c 'echo "deb [arch=amd64] http://apt-mo.trafficmanager.net/repos/dotnet/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
RUN sudo apt-get update
#3 Install .NET Core
RUN sudo apt-get install -y dotnet-dev-1.0.0-preview2-003121
#4 Install Mono (Required by KoreBuild)
RUN sudo apt-get install -y mono-devel
#5 Get Orchard from Github repository
RUN cd /home ; git clone https://github.com/OrchardCMS/Orchard2.git
RUN cd /home/Orchard2 ; sh build.sh
RUN cd /home/Orchard2/src/Orchard.Web ; dotnet run
EXPOSE 5000