Skip to content

Commit

Permalink
chore: bun ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdonado committed Oct 19, 2023
1 parent c14c0f3 commit 6523bf6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "deploy to sjdonado.de"
name: 'deploy to sjdonado.de'

on:
push:
Expand All @@ -16,5 +16,5 @@ jobs:
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: "ssh://[email protected]:22/idonthavespotify"
git_remote_url: 'ssh://[email protected]:22/idonthavespotify'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
26 changes: 18 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
FROM node:19-alpine
FROM oven/bun

EXPOSE 5000
EXPOSE 3000

WORKDIR /usr/src/app

COPY package.json ./
COPY yarn.lock ./
ENV NODE_ENV production

RUN yarn install
COPY package.json .
COPY bun.lockb .

COPY . .
RUN bun install

RUN yarn build
COPY src src
COPY www www

CMD ["node", "./dist/server.js"]
COPY tsconfig.json .
COPY build.ts .
COPY tailwind.config.js .

RUN bun run build:js
RUN bun run build:css

COPY public public

CMD ["bun", "www/bin.ts"]
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: '3'
services:
app:
image: idonthavespotify
env_file: .env
ports:
- 3000:3000
redis:
image: redis:7.0-alpine
ports:
Expand Down

0 comments on commit 6523bf6

Please sign in to comment.