
Added a Dockerfile and compose.yaml for easy deployment via docker. Updated README to provide clear instruction on how to get the instance running.
18 lines
434 B
Text
18 lines
434 B
Text
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"]
|