1
0
mirror of https://github.com/playit-cloud/playit-agent.git synced 2025-09-13 11:49:46 +00:00
Files
playit-agent/ci.Dockerfile
Miku 730ea51ec5 Fix docker build too slow for arm (#107)
* Fix docker build too slow

* Fix permission error

* Fix repo download url link

* Separate Dockerfile for ci
2025-08-18 17:52:49 -07:00

22 lines
621 B
Docker

###### DOWNLOAD RELEASE ARTIFACT ######
FROM alpine:3.18 AS artifact-downloader
ARG REPOSITORY
ARG VERSION
WORKDIR /download
RUN wget -O playit "https://github.com/${REPOSITORY}/releases/download/${VERSION}/playit-linux-$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "aarch64")" && chmod +x playit
########## RUNTIME CONTAINER ##########
FROM alpine:3.18
RUN apk add --no-cache ca-certificates
COPY --from=artifact-downloader /download/playit /usr/local/bin/playit
RUN mkdir /playit
COPY docker/entrypoint.sh /playit/entrypoint.sh
RUN chmod +x /playit/entrypoint.sh
ENTRYPOINT ["/playit/entrypoint.sh"]