forked from hrr17-littlebigplanet/thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 916 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
FROM node:latest
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Set environment variables
ENV BV_KEY $BV_KEY
ENV MS_KEY $MS_KEY
ENV WATSON_TONE_URL $WATSON_TONE_URL
ENV WATSON_TONE_USERNAME $WATSON_TONE_USERNAME
ENV WATSON_TONE_PASSWORD $WATSON_TONE_PASSWORD
ENV WATSON_STT_URL $WATSON_STT_URL
ENV WATSON_STT_USERNAME $WATSON_STT_USERNAME
ENV WATSON_STT_PASSWORD $WATSON_STT_PASSWORD
ENV STORMPATH_API_KEY_ID $STORMPATH_API_KEY_ID
ENV STORMPATH_CLIENT_APIKEY_ID $STORMPATH_CLIENT_APIKEY_ID
ENV STORMPATH_API_KEY_SECRET $STORMPATH_API_KEY_SECRET
ENV STORMPATH_CLIENT_APIKEY_SECRET $STORMPATH_CLIENT_APIKEY_SECRET
ENV STORMPATH_APPLICATION_HREF $STORMPATH_APPLICATION_HREF
ENV STORMPATH_URL $STORMPATH_URL
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
# Build
RUN npm run build
EXPOSE 8128
CMD [ "node", "server.js" ]