-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 860 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
28
29
30
31
32
33
34
35
36
37
FROM node:6
# Install build dependencies
RUN npm install -g [email protected] [email protected] [email protected] [email protected] [email protected]
# Working directory
ENV BUILD_DIR /var/build/
RUN mkdir -p $BUILD_DIR
WORKDIR $BUILD_DIR
# Install node.js dependencies
COPY package.json $BUILD_DIR
RUN npm install
# Install typescript dependencies
COPY typings.json $BUILD_DIR
RUN typings install
# Load source
COPY go-lab.sh tsconfig.json config.xml gulpfile.js $BUILD_DIR
COPY hooks $BUILD_DIR/hooks
COPY resources $BUILD_DIR/resources
COPY app $BUILD_DIR/app
COPY www $BUILD_DIR/www
COPY configure.sh $BUILD_DIR/
# Build config
ARG IONIC_USE_PROXY
ARG GLANCE_API
ARG IONIC_APP_NAME
ARG IONIC_APP_ID
ENV IONIC_USE_PROXY ${IONIC_USE_PROXY:-false}
ENV GLANCE_API ${GLANCE_API}
ENV IONIC_APP_NAME ${IONIC_APP_NAME}
ENV IONIC_APP_ID ${IONIC_APP_ID}
RUN gulp build --release