Skip to content

Commit

Permalink
fix: dockerfile now works
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Mar 3, 2024
1 parent 3e53071 commit edfa0ab
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions kube_cache/cache.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit edfa0ab

Please sign in to comment.