2024-12-29 00:53:15 +01:00
|
|
|
# Use latest alpine-derived Python base image
|
2024-12-29 01:08:24 +01:00
|
|
|
FROM python:3.12-slim
|
2024-12-29 00:53:15 +01:00
|
|
|
|
2024-12-29 01:08:24 +01:00
|
|
|
RUN apt update
|
2024-12-29 01:10:35 +01:00
|
|
|
RUN apt install -y git
|
2025-01-29 18:48:07 +01:00
|
|
|
RUN git clone https://github.com/Linus2punkt0/bluesky-crossposter.git
|
|
|
|
|
# RUN git clone https://github.com/coissac/bluesky-crossposter.git
|
2024-12-29 00:53:15 +01:00
|
|
|
RUN rm -f bluesky-crossposter/Dockerfile \
|
|
|
|
|
bluesky-crossposter/docker-compose.yml \
|
|
|
|
|
bluesky-crossposter/env.example
|
|
|
|
|
RUN mv bluesky-crossposter/* .
|
|
|
|
|
RUN rm -rf bluesky-crossposter
|
2024-12-29 01:10:35 +01:00
|
|
|
RUN apt-get clean
|
|
|
|
|
RUN rm -rf /var/lib/apt/lists/* \
|
|
|
|
|
/tmp/* \
|
|
|
|
|
/var/tmp/* \
|
|
|
|
|
/usr/share/doc/*
|
|
|
|
|
|
2025-04-07 15:52:55 +02:00
|
|
|
RUN touch input/__init__.py \
|
|
|
|
|
output/__init__.py \
|
|
|
|
|
local/__init__.py \
|
|
|
|
|
settings/__init__.py
|
2024-12-29 00:53:15 +01:00
|
|
|
|
2025-04-07 16:20:48 +02:00
|
|
|
RUN for f in settings/*.txt ; do \
|
|
|
|
|
mv $f $f{s/.txt/.py} \
|
|
|
|
|
done
|
|
|
|
|
|
2024-12-29 00:53:15 +01:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
# Make sure run script is executable
|
|
|
|
|
RUN chmod +rxxx ./run.sh
|
|
|
|
|
|
2025-04-07 16:04:10 +02:00
|
|
|
CMD ["sh","./run.sh"]
|