From 4f672fee051e4e624ae314c1ad68e8e176969ce9 Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Sat, 3 Dec 2022 14:22:47 +0000 Subject: [PATCH] docs: Dockerfile comments --- containerised/Dockerfile | 4 ++-- containerised/Dockerfile_dev | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containerised/Dockerfile b/containerised/Dockerfile index 18e9953..0d99e80 100644 --- a/containerised/Dockerfile +++ b/containerised/Dockerfile @@ -31,7 +31,7 @@ WORKDIR /usr/src/oxker # Install target platform (Cross-Compilation) RUN rustup target add $(cat /.platform) -# This is a dummy build to get the dependencies cached +# This is a dummy build to get the dependencies cached - probably not needed - as run via a github action RUN cargo build --target $(cat /.platform) --release # Now copy in the rest of the sources @@ -55,5 +55,5 @@ FROM alpine:latest AS runtime COPY --from=builder /oxker /usr/local/bin COPY ./containerised/start_oxker.sh ./ -# Run the application +# Run the application, this is used in the application itself, to stop itself show when running from a docker container, so DO NOT EDIT ENTRYPOINT [ "./start_oxker.sh"] diff --git a/containerised/Dockerfile_dev b/containerised/Dockerfile_dev index f6f5148..cc13dc0 100644 --- a/containerised/Dockerfile_dev +++ b/containerised/Dockerfile_dev @@ -8,7 +8,7 @@ FROM alpine:latest AS runtime COPY ./target/x86_64-unknown-linux-musl/release/oxker /usr/local/bin COPY ./containerised/start_oxker.sh ./ -## Run the application +# Run the application, this is used in the application itself, to stop itself show when running from a docker container, so DO NOT EDIT ENTRYPOINT [ "./start_oxker.sh"] ## One liner to build musl program, build docker image, then execute the image