Ajouter Dockerfile
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Use latest alpine-derived Python base image
|
||||
FROM python:3.12
|
||||
|
||||
RUN apk add git
|
||||
RUN git clone https://github.com/Linus2punkt0/bluesky-crossposter.git
|
||||
RUN rm -f bluesky-crossposter/Dockerfile \
|
||||
bluesky-crossposter/docker-compose.yml \
|
||||
bluesky-crossposter/env.example
|
||||
RUN mv bluesky-crossposter/* .
|
||||
RUN rm -rf bluesky-crossposter
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy source to app directory
|
||||
COPY . .
|
||||
|
||||
# Make sure run script is executable
|
||||
RUN chmod +rxxx ./run.sh
|
||||
|
||||
CMD sh run.sh
|
||||
Reference in New Issue
Block a user