wip: alpine image

This commit is contained in:
Suyono 2023-12-03 12:56:26 +11:00
parent 171c799a31
commit 190479d796
2 changed files with 13 additions and 2 deletions

View File

@ -15,7 +15,11 @@ COPY --from=builder /root/wingmate/target/release/wmtest-helper-spawner /usr/loc
COPY --from=builder /root/wingmate/target/release/wmtest-helper-log /usr/local/bin/wmtest-helper-log
ADD docker/alpine/etc/ /etc/
ADD docker/alpine/entry.sh /usr/local/bin/entry.sh
RUN chmod -R ugo+x /etc/wingmate
RUN chmod -R ugo+x /etc/wingmate && chmod +x /usr/local/bin/entry.sh && apk add tzdata && \
ln -sv /usr/share/zoneinfo/Australia/Sydney /etc/localtime
CMD [ "/usr/local/bin/init" ]
ENTRYPOINT [ "/usr/local/bin/entry.sh" ]
CMD [ "/usr/local/bin/wingmate" ]

7
docker/alpine/entry.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ $# -gt 0 ];then
exec "$@"
else
exec /usr/local/bin/wingmate
fi