-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 632 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM hexpm/elixir:1.19.4-erlang-28.1-debian-bookworm-20251117 AS builder
# Install SSL ca certificates
RUN apt-get update && \
apt-get install -y bash
# Create appuser
RUN useradd -ms /bin/bash appuser
# Get the source code
WORKDIR /elixir-representer
COPY . .
# Builds an escript bin/elixir_representer
RUN ./bin/build.sh
FROM hexpm/elixir:1.19.4-erlang-28.1-debian-bookworm-20251117
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /elixir-representer/bin /opt/representer/bin
RUN apt-get update && \
apt-get install -y bash
USER appuser
WORKDIR /opt/representer
ENTRYPOINT ["/opt/representer/bin/run.sh"]