18 lines
439 B
Docker
18 lines
439 B
Docker
|
FROM node:14.19.1-bullseye-slim AS builder
|
||
|
|
||
|
COPY ./bbb-pads /bbb-pads
|
||
|
RUN cd /bbb-pads && rm -r .git && npm install --production
|
||
|
|
||
|
|
||
|
RUN chmod 777 /bbb-pads/config
|
||
|
# ------------------------------
|
||
|
|
||
|
FROM node:14.19.1-bullseye-slim
|
||
|
|
||
|
RUN apt update && apt install -y jq moreutils \
|
||
|
&& useradd --uid 2003 --user-group bbb-pads
|
||
|
|
||
|
COPY --from=builder /bbb-pads /bbb-pads
|
||
|
USER bbb-pads
|
||
|
COPY entrypoint.sh /entrypoint.sh
|
||
|
ENTRYPOINT /entrypoint.sh
|