Add Dockerfile (#23)
This commit is contained in:
parent
c1d0f60102
commit
7ba6a02ea2
2 changed files with 14 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:14-alpine
|
||||
|
||||
RUN mkdir /fake-log
|
||||
WORKDIR /fake-log
|
||||
|
||||
RUN apk add --no-cache git python2 make g++
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["npm", "start"]
|
1
app.js
1
app.js
|
@ -56,6 +56,7 @@ const corsOpt = {
|
|||
app.use(cors(corsOpt));
|
||||
app.options('*', cors(corsOpt));
|
||||
|
||||
app.set('subdomain offset', +process.env.SUBDOMAIN_OFFSET || 2);
|
||||
app.use(subdomain('api', api));
|
||||
app.use(subdomain('cufs', cufs));
|
||||
app.use(subdomain('uonetplus', uonetplus));
|
||||
|
|
Loading…
Reference in a new issue