-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathci.Dockerfile
More file actions
29 lines (22 loc) · 833 Bytes
/
Copy pathci.Dockerfile
File metadata and controls
29 lines (22 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
###### DOWNLOAD RELEASE ARTIFACT ######
FROM alpine:3.18 AS artifact-downloader
ARG REPOSITORY
ARG VERSION
ARG TARGETARCH
WORKDIR /download
RUN apk add --no-cache dpkg wget
RUN case "${TARGETARCH}" in \
amd64) deb_arch="amd64" ;; \
arm64) deb_arch="arm64" ;; \
*) echo "unsupported TARGETARCH: ${TARGETARCH}" >&2; exit 1 ;; \
esac \
&& wget -O playit.deb "https://github.com/${REPOSITORY}/releases/download/${VERSION}/playit_${deb_arch}.deb" \
&& dpkg-deb -x playit.deb /extract
########## RUNTIME CONTAINER ##########
FROM alpine:3.18
RUN apk add --no-cache ca-certificates
COPY --from=artifact-downloader /extract/opt/playit/playitd /usr/local/bin/playitd
RUN mkdir /playit
COPY docker/entrypoint.sh /playit/entrypoint.sh
RUN chmod +x /playit/entrypoint.sh
ENTRYPOINT ["/playit/entrypoint.sh"]