Skip to content

Commit

Permalink
Trying to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cataclym committed Dec 18, 2024
1 parent 6d2c2bf commit 6182245
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM node:20
LABEL authors="Ole"
FROM node:20 AS build
LABEL authors="Catadev"

WORKDIR /kaikibot
RUN apt update && curl -sLO https://github.com/fastfetch-cli/fastfetch/releases/latest/download/fastfetch-linux-amd64.deb && dpkg -i fastfetch-linux-amd64.deb
COPY package*.json .
RUN npm install
COPY prisma .
RUN npx prisma generate
RUN npm i --include dev
COPY . .
RUN npm run build
CMD ["npm", "run", "start_docker"]
RUN npx prisma generate
RUN npx tsc -p tsconfig.json
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
db:
image: mariadb:latest
Expand All @@ -21,7 +19,7 @@ services:
build:
context: .
args:
- DATABASE_URL=$DATABASE_URL
- DATABASE_URL=$DATABASE_URL_DOCKER_BUILD
restart: unless-stopped
env_file: ./.env
stdin_open: true
Expand Down
23 changes: 6 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6182245

Please sign in to comment.