mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-07-07 04:32:32 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7de00d67a7 | |||
| bb778b4374 | |||
| 9f93a759f0 |
@@ -0,0 +1,8 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
node_modules
|
||||||
|
front/node_modules
|
||||||
|
front/dist
|
||||||
|
back/tmp
|
||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
+38
@@ -0,0 +1,38 @@
|
|||||||
|
FROM oven/bun:1-alpine AS frontend-builder
|
||||||
|
|
||||||
|
WORKDIR /app/front
|
||||||
|
|
||||||
|
COPY front/package.json front/bun.lock ./
|
||||||
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
|
COPY front/ ./
|
||||||
|
RUN bun run build
|
||||||
|
|
||||||
|
|
||||||
|
FROM golang:1.25-alpine AS backend-builder
|
||||||
|
|
||||||
|
WORKDIR /app/back
|
||||||
|
|
||||||
|
COPY back/go.mod back/go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY back/ ./
|
||||||
|
|
||||||
|
RUN go build -o iknowyou ./cmd/server
|
||||||
|
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apk add --no-cache ca-certificates
|
||||||
|
|
||||||
|
COPY --from=backend-builder /app/back/iknowyou .
|
||||||
|
COPY --from=frontend-builder /app/front/dist ./static
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
ENV IKY_PORT=8080
|
||||||
|
ENV IKY_FRONT_DIR=/app/static
|
||||||
|
|
||||||
|
CMD ["./iknowyou"]
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
services:
|
||||||
|
iknowyou:
|
||||||
|
build: .
|
||||||
|
container_name: iknowyou
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
restart: unless-stopped
|
||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
"@lucide/svelte": "^1.7.0",
|
"@lucide/svelte": "^1.7.0",
|
||||||
"@tailwindcss/vite": "^4.2.1",
|
"@tailwindcss/vite": "^4.2.1",
|
||||||
"ansi_up": "^6.0.6",
|
"ansi_up": "^6.0.6",
|
||||||
"astro": "6.1.2",
|
"astro": "6.4.6",
|
||||||
"dompurify": "^3.3.3",
|
"dompurify": "^3.3.3",
|
||||||
"js-yaml": "^4.1.1",
|
"js-yaml": "^4.1.1",
|
||||||
"remark-github-blockquote-alert": "^2.1.0",
|
"remark-github-blockquote-alert": "^2.1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user