8dfa4bd6bab37276c6cc50a1510787880df51770

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Fix dockerfile

Diff

 1diff --git a/Dockerfile b/Dockerfile
 2index 88092e971c9546b278aad22ed1f9fafeb421b7a3..9d71bb5b9685103eeace2f8d6b5eda9eadd38a11 100644
 3--- a/Dockerfile
 4+++ b/Dockerfile
 5@@ -1,16 +1,13 @@
 6-FROM golang:1.19-bullseye AS builder
 7-RUN apt update && apt install -y make
 8+FROM golang:1.24-trixie AS builder
 9 
10-# first copy just enough to pull all dependencies, to cache this layer
11-COPY go.mod go.sum Makefile /app/
12+COPY go.mod go.sum /app/
13 WORKDIR /app/
14-RUN make setup
15+RUN go mod download
16 
17-# lint, build, etc..
18 COPY . /app/
19-RUN make build
20+RUN go build -o dist/ytrssil-api cmd/main.go
21 
22-FROM debian:bullseye-slim AS api
23+FROM debian:trixie-slim AS api
24 RUN apt update \
25 	&& apt install -y ca-certificates curl \
26 	&& apt clean \