cpolis/Dockerfile

18 lines
410 B
Docker

FROM golang:1.23
RUN apt update
RUN apt install -y pandoc
WORKDIR /var/www/cpolis
COPY . .
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.15/tailwindcss-linux-x64
RUN chmod +x tailwindcss-linux-x64
RUN mv tailwindcss-linux-x64 tailwindcss
RUN ./tailwindcss -i ./web/static/css/input.css -o ./web/static/css/style.css
RUN go build -o cpolis cmd/main.go
CMD ["./cpolis"]