bfdc17e949
This commit introduces a Dockerfile for building Docker images of OrbitDB base installations on node.js. It is based on official nodejs image, and can also be used either as a base image for building new images for projects that use OrbitDB, or as image for throwaway temporary containers.
15 lines
228 B
Docker
15 lines
228 B
Docker
FROM node:carbon
|
|
|
|
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
|
|
|
|
WORKDIR /home/node
|
|
USER node
|
|
|
|
COPY package.json ./
|
|
COPY examples/ ./examples
|
|
COPY src/ ./src
|
|
COPY conf/ ./conf
|
|
|
|
RUN npm install babel-cli webpack \
|
|
&& npm install
|