Skip to content

Commit

Permalink
Use numeric uid in Dockerfile (#97)
Browse files Browse the repository at this point in the history
/cherry-pick

Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Apr 28, 2023
1 parent 734717c commit 155b1a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.dbg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LABEL org.opencontainers.image.source https://github.com/stashed/nats

ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
ENV USER nobody
ENV USER 65534

RUN set -x \
&& apt-get update \
Expand All @@ -47,6 +47,6 @@ COPY --from=0 /restic /bin/restic
COPY --from=0 /nats-{NATS_CLI_VER}-{ARG_OS}-{ARG_ARCH}/nats /bin/nats
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

USER nobody
USER 65534

ENTRYPOINT ["/{ARG_BIN}"]
4 changes: 2 additions & 2 deletions Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LABEL org.opencontainers.image.source https://github.com/stashed/nats

ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
ENV USER nobody
ENV USER 65534

RUN set -x \
&& apt-get update \
Expand All @@ -47,6 +47,6 @@ COPY --from=0 /restic /bin/restic
COPY --from=0 /nats-{NATS_CLI_VER}-{ARG_OS}-{ARG_ARCH}/nats /bin/nats
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}

USER nobody
USER 65534

ENTRYPOINT ["/{ARG_BIN}"]

0 comments on commit 155b1a0

Please sign in to comment.