mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-06-04 15:02:34 +02:00
Merge pull request #5 from rangampallysonali/iknowyou
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user