22 lines
699 B
Docker
22 lines
699 B
Docker
FROM node:23-alpine
|
|
ARG BIN_FOLDER=/bin
|
|
ARG PLUTO_FOLDER=pluto
|
|
ARG FIXES_FOLDER_ARG=fixes
|
|
ARG START_SCRIPT_ARG=$BIN_FOLDER/$PLUTO_FOLDER/start.sh
|
|
ENV WORKDIR=${BIN_FOLDER}/${PLUTO_FOLDER}
|
|
ENV START_SCRIPT=$START_SCRIPT_ARG
|
|
COPY config.json /config/config.json
|
|
RUN mkdir $(echo "${WORKDIR}") -p
|
|
COPY start.sh $WORKDIR
|
|
RUN apk update \
|
|
&& apk upgrade --available \
|
|
&& apk add tzdata bash \
|
|
&& npm install -g npm@latest \
|
|
&& npm install -g plutotv-scraper \
|
|
&& ln -s /config/config.json $(echo "${WORKDIR}/config.json") \
|
|
&& mkdir /public \
|
|
&& chmod +x "$START_SCRIPT" \
|
|
&& rm -rf /var/cache/apk/*
|
|
SHELL ["/bin/bash", "-c"]
|
|
ENTRYPOINT bash $START_SCRIPT work-dir="$WORKDIR"
|
|
EXPOSE 5050 |