From 4ce6066279cd040540ddcbd9be0617f10199459d Mon Sep 17 00:00:00 2001 From: Matthew Dean Date: Fri, 19 Nov 2021 15:36:24 +0000 Subject: [PATCH] Initial commit --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f0496cc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1.0.0-experimental + +FROM node:14.16.0-alpine + +# Allow log level to be controlled. Uses an argument name that is different +# from the existing environment variable, otherwise the environment variable +# shadows the argument. +ARG LOGLEVEL +ENV NPM_CONFIG_LOGLEVEL ${LOGLEVEL} + +WORKDIR /ipfs + +# Install base dependencies +COPY . . +RUN npm install --production + + +EXPOSE 80 +CMD ["node", "./app/index.js"]