diff --git a/Layerfile b/Layerfile index 0c94129b28..eb195048bc 100644 --- a/Layerfile +++ b/Layerfile @@ -16,14 +16,14 @@ RUN apt-get update && \ # install & start k3s RUN curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.2+k3s1 sh -s - --docker -# install docker compose +# install Docker Compose RUN curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \ chmod +x /usr/local/bin/docker-compose # copy the root (i.e., repository root) to /root in the runner COPY / /root -# TODO: log in to docker hub to avoid rate limits +# TODO: log in to Docker Hub to avoid rate limits # See https://webapp.io/docs/advanced-workflows#logging-in-to-docker to learn how to log in to docker # RUN REPEATABLE echo "replace this line with your image build command" && docker build -t image build-dir @@ -36,10 +36,10 @@ COPY / /root # (change options of k3s install to --docker --disable traefik to disable the default ingress controller) # EXPOSE WEBSITE https://localhost:443 -RUN REPEATABLE docker-compose -f docker-compose.demo.yml up -d --build --force-recreate --remove-orphans && sleep 5 +RUN REPEATABLE docker-compose -f docker-compose.yml up -d --build --force-recreate --remove-orphans && sleep 5 -# TODO: make sure that UI access API on the same endpoint as the UI, but with /api -# We probably should make some kind of env var to allow easy to use that because it's pretty common +# TODO: make sure that UI accesses API on the same endpoint as the UI, but with '/api' +# We probably should make some kind of env var to allow easy-to-use that because it's pretty common # Cube EXPOSE WEBSITE localhost:4000 /cube