File tree Expand file tree Collapse file tree 2 files changed +2
-69
lines changed Expand file tree Collapse file tree 2 files changed +2
-69
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:bookworm-slim
1
+ FROM gcr.io/distroless/cc-debian12
2
2
3
3
ARG TARGETPLATFORM
4
4
5
- RUN apt-get update \
6
- && apt-get install -y ca-certificates gosu curl --no-install-recommends \
7
- && apt-get clean \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- ENV \
11
- RELAY_UID=10001 \
12
- RELAY_GID=10001
13
-
14
- # Create a new user and group with fixed uid/gid
15
- RUN groupadd --system relay --gid $RELAY_GID \
16
- && useradd --system --gid relay --uid $RELAY_UID relay
17
-
18
5
RUN mkdir /work /etc/relay \
19
6
&& chown relay:relay /work /etc/relay
20
7
VOLUME ["/work", "/etc/relay"]
@@ -27,7 +14,4 @@ RUN chmod +x /bin/relay
27
14
COPY $TARGETPLATFORM/relay-debug.zip /opt/relay-debug.zip
28
15
COPY $TARGETPLATFORM/relay.src.zip /opt/relay.src.zip
29
16
30
- COPY ./docker-entrypoint.sh /
31
- ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
32
- CMD ["run"]
33
-
17
+ ENTRYPOINT ["/bin/relay"]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments