diff --git a/Dockerfile b/Dockerfile index b8968cf..8b6ca7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM golang:1.23-alpine as build_go -RUN apk add --no-cache curl npm +FROM golang:1.25-alpine as build_go +RUN apk add --no-cache curl WORKDIR /app @@ -9,15 +9,13 @@ RUN go mod download COPY . . RUN go install github.com/a-h/templ/cmd/templ@latest -RUN npm install tailwindcss @tailwindcss/cli RUN templ generate -RUN npx @tailwindcss/cli -i ./cmd/web/assets/css/input.css -o ./cmd/web/assets/css/output.css RUN go build -o main cmd/main.go # Stage 2, distribution container -FROM golang:1.23-alpine +FROM golang:1.25-alpine EXPOSE 8080 VOLUME /sorted VOLUME /frontend diff --git a/justfile b/justfile index 3f858a4..21e5098 100644 --- a/justfile +++ b/justfile @@ -89,6 +89,10 @@ clean: @echo "Cleaning..." @rm -f main +podman-build: + @echo "Building Docker image with podman..." + @podman build -t music-server . + podman-run: @podman-compose up --build