-
Notifications
You must be signed in to change notification settings - Fork 92
/
Dockerfile.release
33 lines (24 loc) · 794 Bytes
/
Dockerfile.release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:bookworm-slim
ARG TARGETPLATFORM
RUN apt-get update \
&& apt-get install -y ca-certificates gosu curl --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV \
RELAY_UID=10001 \
RELAY_GID=10001
# Create a new user and group with fixed uid/gid
RUN groupadd --system relay --gid $RELAY_GID \
&& useradd --system --gid relay --uid $RELAY_UID relay
RUN mkdir /work /etc/relay \
&& chown relay:relay /work /etc/relay
VOLUME ["/work", "/etc/relay"]
WORKDIR /work
EXPOSE 3000
COPY $TARGETPLATFORM/relay /bin/relay
RUN chmod +x /bin/relay
COPY $TARGETPLATFORM/relay-debug.zip /opt/relay-debug.zip
COPY $TARGETPLATFORM/relay.src.zip /opt/relay.src.zip
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/bin/bash", "/docker-entrypoint.sh"]
CMD ["run"]