-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 861 Bytes
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
FROM frekele/ant
# install environment dependencies
RUN apt-get update -yq \
&& apt-get install curl gnupg -yq \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash \
&& apt-get install nodejs -yq \
&& apt-get install -y git
# prepare App Inventor workspace
# This tag should have a message to avoid build error -------------->>>>>>>>>>> VVVVVVVVV
RUN git clone --depth 1 https://github.com/ColinTree/appinventor-sources.git -b e-b-1.4.0 /usr/workspace \
&& cd /usr/workspace \
&& git submodule update --init
# put it at last since it is sometimes modified
RUN npm i -g typescript \
&& npm i -g pm2
WORKDIR /usr/src
# cache node modules
COPY package*.json ./
RUN npm i
# build ts files
COPY src src
COPY tsconfig.json ./
COPY tslint.json ./
RUN tsc
COPY config config
COPY static static
EXPOSE 8048
CMD [ "npm", "start" ]