forked from HaxeFoundation/haxe.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (50 loc) · 1.52 KB
/
Dockerfile
File metadata and controls
64 lines (50 loc) · 1.52 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Usage
#
# 1. Build it: docker build -t haxe.org .
#
# 2. Create .env file with content as follows:
# HAXEORG_DB_HOST=localhost
# HAXEORG_DB_PORT=3306
# HAXEORG_DB_NAME=haxe
# HAXEORG_DB_USER=user
# HAXEORG_DB_PASS=password
#
# 3. Run it: docker run -p 2000:80 --env-file .env haxe.org
#
# 4. Visit: http://$(docker-machine ip):2000/update/site/
#
# 5. Visit: http://$(docker-machine ip):2000/update/manual/
#
# https://hub.docker.com/r/andyli/tora/
FROM andyli/tora
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
default-jdk \
libmagickcore-dev \
libmagickwand-dev \
python-pip \
&& rm -r /var/lib/apt/lists/*
RUN pip install awscli
COPY *.hxml /src/
WORKDIR /src
RUN haxelib setup /haxelib
RUN yes | haxelib install all
RUN yes | haxelib install ufront
RUN yes | haxelib git closure https://github.com/jasononeil/closure.git patch-1
# install dev version of ufront-mvc to get unreleased feature
RUN git clone https://github.com/ufront/ufront-mvc.git
WORKDIR /src/ufront-mvc
RUN git checkout d7b9066f4405358aaa0e797ec7b7656c4daf46c4
RUN haxelib dev ufront-mvc .
RUN ln -s `haxelib path ImageMagick | sed "2q;d"`ndll/Linux64/nMagick.ndll /usr/lib/neko/nMagick.ndll
COPY www /src/www/
COPY src /src/src/
RUN git clone https://github.com/ufront/ufblog.git /src/submodules/ufblog \
&& cd /src/submodules/ufblog \
&& git checkout ecb514070c885df315cd9c29020639884709da6e
RUN rm -rf /var/www/html
RUN ln -s /src/www /var/www/html
WORKDIR /src
RUN mkdir doc
RUN haxelib run ufront build
EXPOSE 80