summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-02-27 15:27:39 +0530
committerBobby <[email protected]>2026-02-27 15:27:39 +0530
commitf2c9b615129c4842bdaa9bdc7b33f99e873b772e (patch)
tree0298600bc6fc53bfe8a7db7a911dd5bfbca63019 /Dockerfile
parente81976e219ae274c4cd8511e86d928b232de4ecf (diff)
downloadpagoda-f2c9b615129c4842bdaa9bdc7b33f99e873b772e.tar.xz
pagoda-f2c9b615129c4842bdaa9bdc7b33f99e873b772e.zip
feat(garden): initialize Solid.js project with basic structure and routing
- Added package.json with dependencies for Solid.js and Vite. - Created main application component (App) with layout and suspense handling. - Implemented Layout component with navigation and sidebar sections. - Added NavSection and Sidebar components for structured navigation. - Configured API URL based on environment. - Created 404 error page for handling non-existent routes. - Set up global styles and theme variables for consistent design. - Established routing with lazy loading for the 404 page. - Added TypeScript configuration for Solid.js. - Configured Vite for development and production builds. - Created Makefile for building and running the Go application in the shrine directory. - Added .gitignore for ignoring build artifacts and environment files.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..be8daa4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+FROM golang:1.24 AS builder
+
+WORKDIR /shrine
+
+RUN apt-get update && apt-get install -y gcc libc6-dev make git
+
+ENV CGO_ENABLED=1
+
+COPY shrine/go.mod shrine/go.sum* ./
+RUN go mod download
+
+COPY shrine/ .
+RUN make build
+
+FROM debian:bookworm-slim
+
+WORKDIR /shrine
+
+RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
+
+COPY --from=builder /shrine/bin/shrine .
+
+CMD ["./shrine"] \ No newline at end of file