Add Dockerfile (#23)

This commit is contained in:
Laura 2020-05-12 13:55:23 +02:00 committed by GitHub
parent c1d0f60102
commit 7ba6a02ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

13
Dockerfile Normal file
View 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
View file

@ -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));