Skip to content

Commit

Permalink
First Docker Image and Prisma SQLite Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomhuel committed May 21, 2024
1 parent 85980bb commit f0be44e
Show file tree
Hide file tree
Showing 14 changed files with 147 additions and 1,483 deletions.
6 changes: 4 additions & 2 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DISCORD_TOKEN=""
CLIENT_ID=1129712001233465425
DISCORD_TOKEN=
CLIENT_ID=

DATABASE_URL="file:./database/dev.db"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
src/test.ts
dist
.env
.env
prisma/database
package-lock.json
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:20.11.1-alpine3.19

WORKDIR /app

COPY package.json .env prisma tsconfig.json ./
COPY src /app/src

RUN npm install
RUN npx prisma migrate dev

CMD [ "npm", "start" ]
Loading

0 comments on commit f0be44e

Please sign in to comment.