You've already forked docker-script-server
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
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" ]
|
Reference in New Issue
Block a user