docker
This commit is contained in:
parent
1c403ae8b3
commit
e5491528c4
2 changed files with 22 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
FROM python:3.9-alpine
|
||||||
|
|
||||||
|
ARG STACOSYS_VERSION=2.0
|
||||||
|
ARG STACOSYS_FILENAME=stacosys-${STACOSYS_VERSION}-py3-none-any.whl
|
||||||
|
|
||||||
|
RUN apk update && apk add bash && apk add wget && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
COPY docker/docker-init.sh /usr/local/bin/
|
||||||
|
RUN chmod +x usr/local/bin/docker-init.sh
|
||||||
|
|
||||||
|
RUN cd /
|
||||||
|
#COPY ${STACOSYS_FILENAME} /
|
||||||
|
RUN wget https://github.com/kianby/stacosys/releases/download/${STACOSYS_VERSION}/${STACOSYS_FILENAME}
|
||||||
|
RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
|
||||||
|
RUN rm -f ${STACOSYS_FILENAME}
|
||||||
|
|
||||||
|
WORKDIR /stacosys
|
||||||
|
CMD ["docker-init.sh"]
|
4
docker/docker-init.sh
Normal file
4
docker/docker-init.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /stacosys
|
||||||
|
python3 run.py /config/config.ini
|
Loading…
Add table
Reference in a new issue