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
another Dockerfile fix
Dane Schneiderfee68c9ceb2d
diff --git a/app/Dockerfile.server b/app/Dockerfile.serverindex 63267893..cdbba3f2 100644--- a/app/Dockerfile.server+++ b/app/Dockerfile.server@@ -1,48 +1,33 @@# Build stageFROM --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/serverENV GOOS=linuxENV GOARCH=amd64-RUN (rm plandex-server || true) && go build -o plandex-server .+RUN (rm -f plandex-server || true) && go build -o plandex-server .# Final stageFROM alpine:3.19.1-# Install git and ca-certificatesRUN apk --no-cache add git ca-certificates-WORKDIR /root/+WORKDIR /app/server-# Copy the binary from the builder stageCOPY --from=builder /app/server/plandex-server .+COPY --from=builder /app/server/migrations ./migrations-# Copy app/server/migrations to ./migrations-COPY --from=builder /app/server/migrations .--WORKDIR /app/server--# Set the PORT environment variableENV PORT=8080--# Expose port 8080EXPOSE 8080-# Command to runCMD ["./plandex-server"]