Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
slimmed down Dockerfile
Dane Schneidere3182f6107d7
diff --git a/app/Dockerfile.server b/app/Dockerfile.serverindex ecc2df91..132cfc5a 100644--- a/app/Dockerfile.server+++ b/app/Dockerfile.server@@ -1,26 +1,46 @@-FROM --platform=linux/amd64 golang:1.21.3--RUN apt-get update && \- apt-get install -y git+# Build stage+FROM --platform=linux/amd64 golang:1.21.3 as builder+# Set the working directory for the buildWORKDIR /app+# Copy and download dependencies for sharedCOPY ./shared/go.mod ./shared/go.sum ./shared/RUN cd shared && go mod download+# Copy and download dependencies for serverCOPY ./server/go.mod ./server/go.sum ./server/RUN cd server && go mod download+# Copy the rest of the source codeCOPY ./server ./serverCOPY ./shared ./shared+# Build the applicationWORKDIR /app/server-ENV GOOS=linuxENV GOARCH=amd64RUN (rm plandex-server || true) && go build -o plandex-server .+# Final stage+FROM alpine:3.19.1++# Install git and ca-certificates+RUN apk --no-cache add git ca-certificates++WORKDIR /root/++# Copy the binary from the builder stage+COPY --from=builder /app/server/plandex-server .++# Copy app/server/migrations to ./migrations+COPY --from=builder /app/server/migrations ./migrations++# Set the PORT environment variableENV PORT=8080++# Expose port 8080EXPOSE 8080+# Command to runCMD ["./plandex-server"]