Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame^] | 1 | # 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 Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 15 | FROM node:8.16-alpine
|
| 16 |
|
| 17 | ENV ENV=development
|
| 18 | ENV NAMESPACE=namespace
|
| 19 | ENV APP_NAME=otf-frontend
|
| 20 | ENV APP_VERSION=1.0
|
| 21 | ENV OTF_URL=https://loaclhost:32524/
|
| 22 | ENV OTF_EMAIL=email@email.com
|
| 23 | ENV AUTHENTICATION_SECRET=/ytoYB+iD5HUuDLmeqStcoUPwqw=
|
| 24 | ENV SERVICEAPI_URL=https://localhost:32303/otf/api/
|
| 25 | ENV SERVICEAPI_URIEXECUTETESTINSTANCE=testInstance/execute/v1/id/
|
| 26 | ENV SERVICEAPI_AAFID=username
|
| 27 | ENV SERVICEAPI_AAFPASSWORD=password
|
| 28 | ENV CAMUNDAAPI_URL=https://localhost:31313/
|
| 29 | ENV CAMUNDAAPI_AAFID=username
|
| 30 | ENV CAMUNDAAPI_AAFPASSWORD=password
|
| 31 | ENV MONGO_BASEURL=localhost:27017/
|
| 32 | ENV MONGO_DBOTF=otf
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 33 | ENV MONGO_REPLICASET=rs0
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 34 | ENV MONGO_USERNAME=username
|
| 35 | ENV MONGO_PASSWORD=password
|
| 36 |
|
| 37 | COPY . /home/node
|
| 38 | WORKDIR /home/node
|
| 39 |
|
| 40 | RUN mkdir -p /otf/logs
|
| 41 |
|
| 42 | RUN npm install --unsafe-perm
|
| 43 | RUN npm run-script build
|
| 44 |
|
| 45 | ENTRYPOINT [ "npm", "start" ]
|