stacosys/Dockerfile

26 lines
617 B
Docker
Raw Normal View History

FROM python:3.13.1-alpine3.20
2021-07-31 05:43:06 +02:00
ARG STACOSYS_VERSION=3.4
2021-07-31 05:43:06 +02:00
ARG STACOSYS_FILENAME=stacosys-${STACOSYS_VERSION}-py3-none-any.whl
2021-11-12 12:09:06 +01:00
RUN apk update && apk add bash && apk add wget
# Timezone
RUN apk add tzdata
RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
RUN echo "Europe/Paris" > /etc/timezone
# Clean apk cache
RUN rm -rf /var/cache/apk/*
2021-07-31 05:43:06 +02:00
COPY docker/docker-init.sh /usr/local/bin/
RUN chmod +x usr/local/bin/docker-init.sh
RUN cd /
2022-11-13 09:51:29 +01:00
COPY dist/${STACOSYS_FILENAME} /
2021-07-31 05:43:06 +02:00
RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
2024-12-14 14:10:47 +01:00
#RUN rm -f ${STACOSYS_FILENAME}
2021-07-31 05:43:06 +02:00
WORKDIR /stacosys
CMD ["docker-init.sh"]