add python + modules
This commit is contained in:
parent
f7f1d6e4d1
commit
cdd8eb8044
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,18 +1,20 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
# Install necessary packages
|
||||
RUN apt-get update && apt-get install -y openssh-client git
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git python3 && \
|
||||
pip3 install paramiko gitpython
|
||||
|
||||
# Copy the script into the container
|
||||
COPY app.sh /app/app.sh
|
||||
COPY app.py /app/app.py
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Make the script executable
|
||||
RUN chmod +x app.sh
|
||||
RUN chmod +x app.py
|
||||
|
||||
# Set the entrypoint to execute the script
|
||||
ENTRYPOINT ["/app/app.sh"]
|
||||
ENTRYPOINT ["/app/app.py"]
|
||||
|
||||
# cron fehlt
|
||||
|
|
Loading…
Reference in a new issue