From fe14e6a9d7cca7d2ee68c2248c50b6d8528fd789 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 5 Nov 2024 05:49:24 -0700 Subject: [PATCH] chore: package datasets and aws encryption provider --- Dockerfile | 23 ++++++++--------------- pkg/api/handlers/version.go | 31 ++++++++----------------------- pkg/services/config.go | 10 ++++++---- tools/package-tools.sh | 20 +++++++++++++++++++- 4 files changed, 41 insertions(+), 43 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c53163b5..e545468a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,33 +1,20 @@ -# First Stage: Builder FROM cgr.dev/chainguard/wolfi-base AS builder -# Install build dependencies RUN apk add --no-cache go npm make git pnpm curl - -# Set the working directory WORKDIR /app - -# Copy the source code COPY . . - RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \ --mount=type=cache,target=/root/.cache/go-build \ --mount=type=cache,target=/root/go/pkg/mod \ make in-docker-build -# Second Stage: Final FROM cgr.dev/chainguard/wolfi-base AS final - -# Install build dependencies RUN apk add --no-cache git python-3.13 py3.13-pip openssh-server npm bash tini COPY --chmod=0755 /tools/package-chrome.sh / RUN /package-chrome.sh && rm /package-chrome.sh RUN sed -E 's/^#(PermitRootLogin)no/\1yes/' /etc/ssh/sshd_config -i RUN ssh-keygen -A RUN mkdir /run/sshd && /usr/sbin/sshd - - -# Copy the compiled application from the builder stage COPY --from=builder /app/bin/otto8 /bin/ COPY --link --from=builder /app/otto8-tools /otto8-tools RUN <