Merge branch 'docker'

This commit is contained in:
Jon Lawrence 2025-03-03 14:53:50 -08:00
commit 04153bef9f
3 changed files with 28 additions and 2 deletions

18
Dockerfile-jank Normal file
View file

@ -0,0 +1,18 @@
From node:18-bullseye as builder
WORKDIR devel/
RUN apt-get update ; apt-get upgrade -y ; apt-get install -y python-is-python3 build-essential git
RUN git clone https://github.com/MathMan05/JankClient
RUN cd JankClient ; npm i ; npm run build
From node:18-alpine
EXPOSE 8080
WORKDIR exec
RUN apk add --update git nodejs npm
COPY --from=builder /devel/JankClient/ .
RUN adduser -D jankclient
USER jankclient
CMD ["npm", "start"]

View file

@ -1,8 +1,8 @@
# Jank Client
Jank Client is a [Spacebar](https://spacebar.chat) Client written in TS, HTML, and CSS.
To run it, clone the repo and do `npm install`, then
`node index.js`
To build it, clone the repo and run `npm install`, then `npm run build`
To run it, use `npm start`
or do the equivalent with bun
Both [Bun](https://bun.sh) and [Node.js](https://nodejs.org) are supported, and should function as expected.

8
compose.yaml Normal file
View file

@ -0,0 +1,8 @@
services:
jank:
build:
context: .
dockerfile: Dockerfile-jank
restart: unless-stopped
ports:
- "8080:8080"