fix: remove tailwind from dockerfile and add podman-build command
Build / build (push) Successful in 33s
Build / build (push) Successful in 33s
This commit is contained in:
+3
-5
@@ -1,5 +1,5 @@
|
|||||||
FROM golang:1.23-alpine as build_go
|
FROM golang:1.25-alpine as build_go
|
||||||
RUN apk add --no-cache curl npm
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -9,15 +9,13 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go install github.com/a-h/templ/cmd/templ@latest
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
||||||
RUN npm install tailwindcss @tailwindcss/cli
|
|
||||||
|
|
||||||
RUN templ generate
|
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
|
RUN go build -o main cmd/main.go
|
||||||
|
|
||||||
# Stage 2, distribution container
|
# Stage 2, distribution container
|
||||||
FROM golang:1.23-alpine
|
FROM golang:1.25-alpine
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
VOLUME /sorted
|
VOLUME /sorted
|
||||||
VOLUME /frontend
|
VOLUME /frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user