initial commit

This commit is contained in:
2018-11-01 15:20:53 -07:00
commit 2067fd63ca
13 changed files with 2885 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Build node app in full node container
FROM node:8
# install/build node modules, with full c build chain
WORKDIR /build
RUN npm install -g yarn
COPY package.json yarn.lock ./
RUN yarn install
# distribute much smaller alpine image
FROM node:8-alpine
WORKDIR /app
VOLUME /app/data
COPY --from=0 /build .
COPY . .
ENTRYPOINT ["yarn", "start"]