fix: update Dockerfile to use Ubuntu base image and correct orchestrating script path

This commit is contained in:
2025-09-23 15:57:48 +08:00
parent fa4f5b63ff
commit 31827c8d99
2 changed files with 13 additions and 7 deletions

View File

@@ -43,4 +43,4 @@ jobs:
DO_TOKEN: ${{ secrets.DO_TOKEN }}
SSH_PRIVATE_KEY_DECODED: ${{ secrets.SSH_PRIVATE_KEY_DECODED }}
run: |
orchestrating.sh
orchestrating

View File

@@ -1,10 +1,16 @@
FROM alpine:latest
RUN apk --no-cache add curl bash git doctl openssh
FROM catthehacker/ubuntu:runner-24.04
USER root
RUN apt-get update && apt-get install -y curl bash git wget openssh-client
WORKDIR /root
RUN wget https://github.com/digitalocean/doctl/releases/download/v1.141.0/doctl-1.141.0-linux-amd64.tar.gz \
&& tar -xvf doctl-1.141.0-linux-amd64.tar.gz \
&& mv doctl /usr/local/bin \
&& rm doctl-1.141.0-linux-amd64.tar.gz
COPY orchestrating.sh /usr/local/bin/orchestrating.sh
COPY cleanup.sh /usr/local/bin/cleanup.sh
RUN chmod 755 /usr/local/bin/orchestrating.sh /usr/local/bin/cleanup.sh
COPY orchestrating.sh /usr/local/bin/orchestrating
COPY cleanup.sh /usr/local/bin/cleanup
RUN chmod 755 /usr/local/bin/orchestrating /usr/local/bin/cleanup
USER act
CMD ["tail" ,"-f" ,"/dev/null"]