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"]
|
Loading…
Add table
Add a link
Reference in a new issue