summaryrefslogtreecommitdiff
path: root/web-server/Dockerfile
blob: 7ee5d6d113a540bd84f36ca84cf004039ebf82fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM node:latest AS build-env

# Create app directory
WORKDIR /

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)

RUN  git clone git://github.com/TrueDoctor/DiscoBot 
WORKDIR /DiscoBot/WebInterface/NodeJSServer
RUN npm install && npm run build

FROM httpd:latest
WORKDIR /usr/local/apache2/
COPY httpd.conf conf/
COPY --from=build-env /DiscoBot/WebInterface/NodeJSServer/dist htdocs/