blob: de31829536cf1aadfaa99b7f62d59824a920458a [file] [log] [blame]
Rohan Patele19624e2019-11-11 16:30:46 -05001# Copyright (c) 2019 AT&T Intellectual Property. #
2# #
3# Licensed under the Apache License, Version 2.0 (the "License"); #
4# you may not use this file except in compliance with the License. #
5# You may obtain a copy of the License at #
6# #
7# http://www.apache.org/licenses/LICENSE-2.0 #
8# #
9# Unless required by applicable law or agreed to in writing, software #
10# distributed under the License is distributed on an "AS IS" BASIS, #
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
12# See the License for the specific language governing permissions and #
13# limitations under the License. #
14################################################################################
Rohan Patel6f7e46b2019-09-25 14:35:28 -040015FROM node:8.16-alpine
16
17ENV ENV=development
18ENV NAMESPACE=namespace
19ENV APP_NAME=otf-frontend
20ENV APP_VERSION=1.0
21ENV OTF_URL=https://loaclhost:32524/
22ENV OTF_EMAIL=email@email.com
23ENV AUTHENTICATION_SECRET=/ytoYB+iD5HUuDLmeqStcoUPwqw=
24ENV SERVICEAPI_URL=https://localhost:32303/otf/api/
25ENV SERVICEAPI_URIEXECUTETESTINSTANCE=testInstance/execute/v1/id/
26ENV SERVICEAPI_AAFID=username
27ENV SERVICEAPI_AAFPASSWORD=password
28ENV CAMUNDAAPI_URL=https://localhost:31313/
29ENV CAMUNDAAPI_AAFID=username
30ENV CAMUNDAAPI_AAFPASSWORD=password
31ENV MONGO_BASEURL=localhost:27017/
32ENV MONGO_DBOTF=otf
Rohan Patel4aa83422019-09-30 17:01:25 -040033ENV MONGO_REPLICASET=rs0
Rohan Patel6f7e46b2019-09-25 14:35:28 -040034ENV MONGO_USERNAME=username
35ENV MONGO_PASSWORD=password
36
37COPY . /home/node
38WORKDIR /home/node
39
40RUN mkdir -p /otf/logs
41
42RUN npm install --unsafe-perm
43RUN npm run-script build
44
45ENTRYPOINT [ "npm", "start" ]