Base Dockerfile for OrbitDB

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.
This commit is contained in:
V-V 2018-08-31 13:41:52 +03:00
parent a8e097b4f8
commit bfdc17e949

14
docker/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
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