Skip to content

Commit 20f4c14

Browse files
committed
feat(docker): Switch to a distroless base image
1 parent 8879736 commit 20f4c14

File tree

2 files changed

+2
-69
lines changed

2 files changed

+2
-69
lines changed

Dockerfile.release

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
FROM debian:bookworm-slim
1+
FROM gcr.io/distroless/cc-debian12
22

33
ARG TARGETPLATFORM
44

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-
185
RUN mkdir /work /etc/relay \
196
&& chown relay:relay /work /etc/relay
207
VOLUME ["/work", "/etc/relay"]
@@ -27,7 +14,4 @@ RUN chmod +x /bin/relay
2714
COPY $TARGETPLATFORM/relay-debug.zip /opt/relay-debug.zip
2815
COPY $TARGETPLATFORM/relay.src.zip /opt/relay.src.zip
2916

30-
COPY ./docker-entrypoint.sh /
31-
ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
32-
CMD ["run"]
33-
17+
ENTRYPOINT ["/bin/relay"]

docker-entrypoint.sh

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)