From 993abbf9bb74af52ef826e6e46104d9c95f1cc10 Mon Sep 17 00:00:00 2001 From: Rafael Oliveira <56204853+RafDevX@users.noreply.github.com> Date: Sat, 18 Sep 2021 17:02:01 +0100 Subject: [PATCH] Dev Dockerfile (#73) --- .npmrc | 1 + Dockerfile.dev | 11 +++++++++++ README.md | 1 + package.json | 4 ++++ 4 files changed, 17 insertions(+) create mode 100644 .npmrc create mode 100644 Dockerfile.dev diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..4fd0219 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true \ No newline at end of file diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..f38808b --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,11 @@ +FROM node:16.6.1-alpine3.14 +ARG DATABASE_URL +ENV DATABASE_URL ${DATABASE_URL} +WORKDIR /app +COPY package.json . +COPY yarn.lock . +RUN yarn install --frozen-lockfile +COPY ./ ./ +RUN yarn run prisma generate +RUN yarn build +CMD [ "yarn", "start:docker" ] diff --git a/README.md b/README.md index a829e78..421c998 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ services: ## OR: build: context: . + dockerfile: Dockerfile.dev args: DATABASE_URL: file:/app/data/bot.db ## END; diff --git a/package.json b/package.json index 6e0b17d..934ba0e 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,10 @@ "repository": "git@github.com:ist-bot-team/ist-discord-bot", "author": "IST Bot Team", "license": "MIT", + "engines": { + "node": ">=16.6.1", + "npm": ">=7.23.0" + }, "dependencies": { "@discordjs/builders": "^0.6.0", "@discordjs/rest": "^0.1.0-canary.0",