25 lines
679 B
Docker
Raw Permalink Normal View History

2025-02-04 14:42:48 +02:00
FROM alpine: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" ]