Skip to content

Commit 0baaadf

Browse files
committed
nonroot, no more dir creation
1 parent 20f4c14 commit 0baaadf

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile.release

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
FROM gcr.io/distroless/cc-debian12
1+
FROM gcr.io/distroless/cc-debian12:nonroot
22

33
ARG TARGETPLATFORM
4-
5-
RUN mkdir /work /etc/relay \
6-
&& chown relay:relay /work /etc/relay
7-
VOLUME ["/work", "/etc/relay"]
8-
WORKDIR /work
9-
4+
VOLUME ["/etc/relay"]
105
EXPOSE 3000
116

127
COPY $TARGETPLATFORM/relay /bin/relay
13-
RUN chmod +x /bin/relay
14-
COPY $TARGETPLATFORM/relay-debug.zip /opt/relay-debug.zip
15-
COPY $TARGETPLATFORM/relay.src.zip /opt/relay.src.zip
168

179
ENTRYPOINT ["/bin/relay"]

0 commit comments

Comments
 (0)