/
Dockerfile
81 lines (66 loc) · 1.52 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM node:11.4.0
LABEL maintainer="deva.kumar@sas.com"
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
ENV APPNAME=optmodel
#
# Location of the application resources(html, shared resources etc...)
# each APPNAME corresponds to a sub-directory directory in this location with the same name as APPNAME.
# if current directory then set APPLOC to .
#
ENV APPLOC=./public
#
# Specify the html that is the entry point to your app.
# A good standard is to use index.html
#
ENV APPENTRY=logon.html
#
# APPHOST - Leave this as specified below
# The service will use the hostname where the app is running.
#
ENV APPHOST=0.0.0.0
#
# The port on which this app is expected to run
# 8080 is probably taken so use any valid available port no.
#
ENV APPPORT=5060
#
# You can turn off OAUTH2 base authentication
#
ENV OAUTH2=NO
#
# If you want the server to act like a proxy server to the Viya Server
# If this set to YES, rafserver will override OAUTH2 to be YES
#
ENV PROXYSERVER=NO
#
# is SAS server SSL enabled
#
ENV SAS_SSL_ENABLED=NO
#
# servers and clientid
#
ENV VIYA_SERVER=http://myviyaserver
#
# set the redirect to http://localhost:APPPORT/optmodel/main.html
ENV AUTHFLOW=implicit
ENV CLIENTID=blogger
ENV REDIRECT=index.html
ENV TEMPLATECASLIB=Public
ENV TEMPLATETABLE=OUTPUT_SOL
ENV TEMPLATEREPORT=optModel1
#
# COST TABLE
#
ENV COSTNAME=INPUT_COST
ENV COSTCASLIB=Public
#
# caslib to use work and results
#
ENV WORKCASLIB=CASUSER
ENV WORKTABLE=OUTPUT_SOL
ENV WORKREPORT=latest
CMD [ "npm", "run", "indocker"]