update build process

This commit is contained in:
2026-02-26 10:23:37 +01:00
parent 6214ea290f
commit e0940fa82e
2 changed files with 26 additions and 3 deletions

View File

@@ -8,15 +8,17 @@ ENV START_SCRIPT=$START_SCRIPT_ARG
COPY config.json /config/config.json
RUN mkdir $(echo "${WORKDIR}") -p
COPY start.sh $WORKDIR
COPY build.sh .
RUN apk update \
&& apk upgrade --available \
&& apk add tzdata bash \
&& npm install -g npm@latest \
&& npm install -g plutotv-scraper \
&& chmod +x build.sh \
&& bash build.sh \
&& ln -s /config/config.json $(echo "${WORKDIR}/config.json") \
&& mkdir /public \
&& chmod +x "$START_SCRIPT" \
&& rm -rf /var/cache/apk/*
&& rm -rf /var/cache/apk/* \
&& rm build.sh
SHELL ["/bin/bash", "-c"]
ENTRYPOINT bash $START_SCRIPT work-dir="$WORKDIR"
EXPOSE 5050