-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters