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 <