diff --git a/kube_cache/cache.Dockerfile b/kube_cache/cache.Dockerfile index aed7dbe..a1f16c3 100644 --- a/kube_cache/cache.Dockerfile +++ b/kube_cache/cache.Dockerfile @@ -1,11 +1,16 @@ FROM debian:12.5-slim -RUN apt update && apt install ca-certificates -y && apt upgrade -y -WORKDIR /usr/local/bin/kube_cache -COPY kube_cache/kube_cache /usr/local/bin/kube_cache -COPY kube_cache/default.png /usr/local/bin/kube_cache -RUN chmod u+x /usr/local/bin/kube_cache +RUN apt-get update +RUN apt-get install ca-certificates -y +RUN apt-get upgrade -y + +RUN useradd -m app + +USER app +WORKDIR /home/app +COPY kube_cache/kube_cache . +COPY kube_cache/default.png . EXPOSE 8080 -CMD ["kube_cache"] +CMD ["./kube_cache"]