You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stacosys/Dockerfile

26 lines
612 B
Docker

2 years ago
FROM python:3.11.0-alpine
3 years ago
2 years ago
ARG STACOSYS_VERSION=3.3
3 years ago
ARG STACOSYS_FILENAME=stacosys-${STACOSYS_VERSION}-py3-none-any.whl
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/*
3 years ago
COPY docker/docker-init.sh /usr/local/bin/
RUN chmod +x usr/local/bin/docker-init.sh
RUN cd /
COPY dist/${STACOSYS_FILENAME} /
3 years ago
RUN python3 -m pip install ${STACOSYS_FILENAME} --target /stacosys
RUN rm -f ${STACOSYS_FILENAME}
WORKDIR /stacosys
CMD ["docker-init.sh"]