New Docker Container Setup Guidance


DivideBy0

Recommended Posts

I am new to the concept of docker. Is it possible to setup a new docker? There is no template for it. 

This is what I am trying to setup.  https://github.com/tusc/blockips-unifi

Any guidance will be greatly appreciated.

 

This is the docker file:

https://github.com/tusc/blockips-unifi/blob/master/Dockerfile

 

 

#FROM arm64v8/alpine:latest

FROM alpine:latest

RUN apk --update add composer php7-curl php7-session git tzdata && \

composer require art-of-wifi/unifi-api-client

COPY add_block_firewall.php /

COPY del_block_firewall.php /

# requird when building arm images on x86 hardware

ADD qemu-aarch64-static /usr/bin

# build startup script

RUN echo "#!/bin/sh" > /startscript.sh

RUN echo "chown root:root /etc/crontabs/root" >> /startscript.sh

RUN echo "/usr/sbin/crond -d 8 -f" >> /startscript.sh

RUN chmod +x /startscript.sh

ENTRYPOINT ["/startscript.sh"]

 

 

Edited by johnwhicker
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.