forked from tobilg/mesos-framework-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 700 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
FROM mhart/alpine-node:6
MAINTAINER tobilg@gmail.com
# Set application name
ENV APP_NAME flink-framework
# Set application directory
ENV APP_DIR /usr/local/${APP_NAME}
# Set node env to production, so that npm install doesn't install the devDependencies
ENV NODE_ENV production
# Add application
ADD . ${APP_DIR}
# Change the workdir to the app's directory
WORKDIR ${APP_DIR}
# Setup of the application
RUN apk add --no-cache git && \
rm -rf ${APP_DIR}/node_modules && \
rm -rf ${APP_DIR}/public/bower_components && \
npm set progress=false && \
npm install --silent && \
npm install bower -g && \
bower install --allow-root && \
mkdir -p logs
CMD ["npm", "start"]