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.
ssh-scp-ssh-pipelines/Dockerfile

27 lines
786 B
Docker

FROM python:3.8.3-slim-buster
LABEL "maintainer"="Scott Ng <thuongnht@gmail.com>"
LABEL "repository"="https://github.com/cross-the-world/ssh-scp-ssh-pipelines"
LABEL "version"="v1.1.0"
LABEL "com.github.actions.name"="ssh-scp-ssh-pipelines"
LABEL "com.github.actions.description"="Pipeline: ssh -> scp -> ssh"
LABEL "com.github.actions.icon"="terminal"
LABEL "com.github.actions.color"="gray-dark"
RUN apt-get update -y && \
apt-get install -y ca-certificates openssh-client openssl sshpass
COPY requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
RUN mkdir -p /opt/tools
COPY entrypoint.sh /opt/tools/entrypoint.sh
RUN chmod +x /opt/tools/entrypoint.sh
COPY app.py /opt/tools/app.py
RUN chmod +x /opt/tools/app.py
ENTRYPOINT ["/opt/tools/entrypoint.sh"]