FTP-Deploy-Action/Dockerfile
Radoslaw Olko d5aa90bb35 add option to use ssh keys
Since debian's curl seemed incapable of using ssh keys, base docker images was changed
to archlinux. Instead of installing git-ftp via aur, it is downloaded from git.
2020-07-23 20:00:53 +02:00

15 lines
470 B
Docker

FROM archlinux:20200705
LABEL repository="https://github.com/SamKirkland/FTP-Deploy-Action"
LABEL maintainer="Sam Kirkland <FTP-Deploy-Action@samkirkland.com>"
RUN pacman -Sy
RUN pacman -S --noconfirm git nodejs
ADD https://raw.githubusercontent.com/git-ftp/git-ftp/f6dcf6218c9adae5299900f894309d1c83ebebaf/git-ftp /usr/local/bin/git-ftp
RUN chmod +x /usr/local/bin/git-ftp
COPY dist/index.js /deploy.js
RUN chmod +x deploy.js
ENTRYPOINT ["node", "../../deploy.js"]