cpolis/Dockerfile

17 lines
382 B
Docker
Raw Normal View History

FROM golang:latest
RUN apk add --no-cache pandoc
WORKDIR /var/www/cpolis
COPY . .
2025-01-24 18:13:13 +01:00
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
RUN chmod +x tailwindcss-linux-x64
RUN mv tailwindcss-linux-x64 tailwindcss
RUN ./web/static/css/input.css -o ./web/static/css/style.css
RUN go build -o cpolis cmd/main.go
CMD ["./cpolis"]