-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (40 loc) · 1.15 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
FROM node:12.16.1-alpine
LABEL maintainer="[email protected]"
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
#####################################################################
# You can override these(but in container leave APPHOST as shown below)
#
# set this the same as EXPOSE here and override in env or as -p option in dockerrun
ENV APPPORT=8080
# will change to localhost in non-docker environments
ENV APPHOST=0.0.0.0
# ENV APPLOC=./public
# ENV APPENTRY=index.html
# ENV APPENV=appenv.js
ENV AUTHFLOW=code
ENV CLIENTID=uidemos
ENV CLIENTSECRET=secret
##########################
# TLS Setup
##########################
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
ENV SAMESITE=None,secure
# values below are samples - substititue your own.
#
# HTTPS=true
# Option 1
ENV TLS_CREATE="C:US,ST:NC,L:Cary,O:Company,OU:dep,CN:localhost"
# Option 2
# TLS_KEY=../certs/self/key.pem
# TLS_CERT=../certs/self/certificate.pem
# Option 3
# TLS_PFX=../certs/sascert/sascert2.pfx
# TLS_PW=rafdemo
# Optional
# TLS_CABUNDLE=../certs/pems/roots.pem
#####################################################################
CMD ["npm", "run", "indocker"]