Fix golang and tailwind version in Dockerfile
This commit is contained in:
parent
2c6b15bc6d
commit
1b72f05add
@ -1,4 +1,4 @@
|
|||||||
FROM golang:latest
|
FROM golang:1.23
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y pandoc
|
RUN apt install -y pandoc
|
||||||
@ -7,10 +7,10 @@ WORKDIR /var/www/cpolis
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
|
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.15/tailwindcss-linux-x64
|
||||||
RUN chmod +x tailwindcss-linux-x64
|
RUN chmod +x tailwindcss-linux-x64
|
||||||
RUN mv tailwindcss-linux-x64 tailwindcss
|
RUN mv tailwindcss-linux-x64 tailwindcss
|
||||||
RUN tailwindcss -i ./web/static/css/input.css -o ./web/static/css/style.css
|
RUN ./tailwindcss -i ./web/static/css/input.css -o ./web/static/css/style.css
|
||||||
|
|
||||||
RUN go build -o cpolis cmd/main.go
|
RUN go build -o cpolis cmd/main.go
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user