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