Skip to content

Commit

Permalink
Dev Dockerfile (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafDevX authored Sep 18, 2021
1 parent 81a0118 commit 993abbf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
11 changes: 11 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -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" ]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
## OR:
build:
context: .
dockerfile: Dockerfile.dev
args:
DATABASE_URL: file:/app/data/bot.db
## END;
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"repository": "[email protected]: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",
Expand Down

0 comments on commit 993abbf

Please sign in to comment.