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"]