wip: alpine image
This commit is contained in:
parent
171c799a31
commit
190479d796
|
@ -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
|
COPY --from=builder /root/wingmate/target/release/wmtest-helper-log /usr/local/bin/wmtest-helper-log
|
||||||
|
|
||||||
ADD docker/alpine/etc/ /etc/
|
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" ]
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ $# -gt 0 ];then
|
||||||
|
exec "$@"
|
||||||
|
else
|
||||||
|
exec /usr/local/bin/wingmate
|
||||||
|
fi
|
Loading…
Reference in New Issue