-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 725 Bytes
/
Dockerfile
File metadata and controls
18 lines (13 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nginx
env NODEREPO node_7.x
env DISTRO jessie
RUN apt-get update && apt-get install -y curl apt-transport-https git-core
RUN curl -v https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN echo deb https://deb.nodesource.com/${NODEREPO} ${DISTRO} main > /etc/apt/sources.list.d/nodesource.list
RUN echo deb-src https://deb.nodesource.com/${NODEREPO} ${DISTRO} main >> /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && apt-get install -y nodejs build-essential
COPY ./herald /tmp/herald
RUN cd /tmp/herald && npm install && npm run-script build -- -prod && rm -rf node_modules
RUN cd /tmp/herald/dist/ && cp -avr * /usr/share/nginx/html/.
COPY ./nginx/conf.d /etc/nginx/conf.d
EXPOSE 80