Debian Codegraph @

Dockerfile

raw
1 # Dockerfile for highlight.js
2 #
3 # Build image:
4 # docker build -t highlight-js .
5 #
6 # Run container:
7 # docker run --rm -it --publish 8080:80 highlight-js
8 #
9 # And open a browser to http://localhost:8080
10
11 FROM node:12-slim
12 RUN apt-get update -qq \
13 && apt-get install --yes --no-install-recommends \
14 nginx git \
15 && rm -rf /var/lib/apt/lists/*
16 WORKDIR /var/www/html
17 COPY package*.json /var/www/html/
18 RUN npm install
19 COPY . .
20 RUN node tools/build.js :common
21 EXPOSE 80
22 CMD ["nginx", "-g", "daemon off;"]