mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-11-03 23:55:44 +00:00 
			
		
		
		
	Bumps oven/bun from 1.2.9-alpine to 1.2.10-alpine. --- updated-dependencies: - dependency-name: oven/bun dependency-version: 1.2.10-alpine dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Site builder
 | 
						|
FROM oven/bun:1.2.10-alpine AS frontend-builder
 | 
						|
 | 
						|
WORKDIR /frontend
 | 
						|
 | 
						|
COPY ./frontend/package.json ./
 | 
						|
COPY ./frontend/bun.lockb ./
 | 
						|
 | 
						|
RUN bun install
 | 
						|
 | 
						|
COPY ./frontend/public ./public
 | 
						|
COPY ./frontend/src ./src
 | 
						|
COPY ./frontend/eslint.config.js ./
 | 
						|
COPY ./frontend/index.html ./
 | 
						|
COPY ./frontend/tsconfig.json ./
 | 
						|
COPY ./frontend/tsconfig.app.json ./
 | 
						|
COPY ./frontend/tsconfig.node.json ./
 | 
						|
COPY ./frontend/vite.config.ts ./
 | 
						|
COPY ./frontend/postcss.config.cjs ./
 | 
						|
 | 
						|
RUN bun run build
 | 
						|
 | 
						|
# Builder
 | 
						|
FROM golang:1.24-alpine3.21 AS builder
 | 
						|
 | 
						|
WORKDIR /tinyauth
 | 
						|
 | 
						|
COPY go.mod ./
 | 
						|
COPY go.sum ./
 | 
						|
 | 
						|
RUN go mod download
 | 
						|
 | 
						|
COPY ./main.go ./
 | 
						|
COPY ./cmd ./cmd
 | 
						|
COPY ./internal ./internal
 | 
						|
COPY --from=frontend-builder /frontend/dist ./internal/assets/dist
 | 
						|
 | 
						|
RUN CGO_ENABLED=0 go build -ldflags "-s -w"
 | 
						|
 | 
						|
# Runner
 | 
						|
FROM alpine:3.21 AS runner
 | 
						|
 | 
						|
WORKDIR /tinyauth
 | 
						|
 | 
						|
RUN apk add --no-cache curl
 | 
						|
 | 
						|
COPY --from=builder /tinyauth/tinyauth ./
 | 
						|
 | 
						|
EXPOSE 3000
 | 
						|
 | 
						|
HEALTHCHECK --interval=10s --timeout=5s \
 | 
						|
    CMD curl -f http://localhost:3000/api/healthcheck || exit 1
 | 
						|
 | 
						|
ENTRYPOINT ["./tinyauth"] |