forked from Infisical/agent-vault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.goreleaser
More file actions
21 lines (16 loc) · 814 Bytes
/
Copy pathDockerfile.goreleaser
File metadata and controls
21 lines (16 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Minimal runtime image for GoReleaser — the binary is pre-built.
FROM alpine:3.21@sha256:48b0309ca019d89d40f670aa1bc06e426dc0931948452e8491e3d65087abc07d
RUN apk add --no-cache ca-certificates \
&& addgroup -S agentvault && adduser -S -G agentvault -u 65532 agentvault \
&& mkdir -p /data/.agent-vault && chown -R agentvault:agentvault /data
COPY agent-vault /usr/local/bin/agent-vault
COPY scripts/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENV HOME=/data
VOLUME /data
EXPOSE 14321
USER agentvault
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost:14321/health || exit 1
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["server", "--host", "0.0.0.0", "--port", "14321"]