Added docker
Added a Dockerfile and compose.yaml for easy deployment via docker. Updated README to provide clear instruction on how to get the instance running.
This commit is contained in:
parent
00f65f3054
commit
dafc1eadff
3 changed files with 28 additions and 2 deletions
18
Dockerfile-jank
Normal file
18
Dockerfile-jank
Normal 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"]
|
|
@ -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
8
compose.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
services:
|
||||
jank:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-jank
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:8080"
|
Loading…
Add table
Add a link
Reference in a new issue