Skip to content

Commit

Permalink
install certificates in installer
Browse files Browse the repository at this point in the history
Signed-off-by: Prashanth Dintyala <[email protected]>
  • Loading branch information
saiprashanth173 committed Jun 28, 2024
1 parent 3c9b087 commit 2c5c214
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions deploy/prod/k8s/aisnode_container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
# Dockerfile to build an aisnode Docker image
#

FROM ubuntu:22.04 as installer

RUN apt-get update -yq \
&& apt-get install -y --no-install-recommends \
ca-certificates \
git

# TODO -- FIXME: remove statsd
RUN cd /opt && git clone https://github.com/etsy/statsd.git && rm -rf statsd/.git


FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 AS builder

WORKDIR /go/src/aistore
Expand All @@ -17,14 +28,12 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
MODE=${mode} AIS_BACKEND_PROVIDERS=${providers:-"aws gcp"} \
make node

# TODO -- FIXME: remove statsd
RUN cd /opt && git clone https://github.com/etsy/statsd.git && rm -rf statsd/.git


FROM ubuntu:22.04 as base

# Copy over the binaries.
COPY --from=builder /go/bin /usr/bin/
COPY --from=builder /opt/statsd /opt
COPY --from=installer /opt/statsd /opt
COPY --from=installer /etc/ssl /etc/ssl

ENTRYPOINT ["aisnode"]

0 comments on commit 2c5c214

Please sign in to comment.