Refactor
All checks were successful
build docker image / docker-build (push) Successful in 1m21s

This commit is contained in:
2025-02-13 18:16:12 +02:00
parent 10f890012a
commit fb7324d348
10 changed files with 38 additions and 83 deletions

View File

@ -1,24 +1,8 @@
FROM alpine:latest
FROM bugy/script-server:latest
ENV TZ=Europe/Kyiv
ARG VERSION=1.18.0
RUN apk add --update --no-cache \
tzdata \
python3 \
py3-pip \
curl \
bash \
&& rm -rf /var/cache/apk/* && mkdir -p /app mkdir -p /app/conf \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& wget https://github.com/bugy/script-server/releases/download/$VERSION/script-server.zip -O /tmp/script-server.zip
COPY app/conf.json /app/conf/conf.json
WORKDIR /app
RUN unzip /tmp/script-server.zip -d /app && rm -rfv /tmp/script-server.zip && \
pip install --break-system-packages -r requirements.txt
EXPOSE 5000
CMD [ "python3", "launcher.py" ]
RUN apt update && apt install -y curl gpg lsb-release \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update && apt-get install -y \
openssh-client \
docker-ce-cli