diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 11a067b..0000000 --- a/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 6ce92e3..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,26 +0,0 @@ -services: - app: - build: . - ports: - - "1664:1664" - volumes: - - /etc/cpolis/config.toml:/etc/cpolis/config.toml - - /etc/cpolis/serviceAccountKey.json:/etc/cpolis/serviceAccountKey.json - - /var/log/cpolis.log:/var/log/cpolis.log - depends_on: - - db - environment: - DB_USER: cpolis - DB_PASS: ${DB_PASS} - - db: - image: mariadb:11.6 - environment: - MYSQL_ROOT_PASSWORD: ${DB_PASS} - MYSQL_DATABASE: cpolis - MYSQL_USER: cpolis - MYSQL_PASSWORD: ${DB_PASS} - ports: - - "3306:3306" - volumes: - - ./create_db.sql:/docker-entrypoint-initdb.d/create_db.sql diff --git a/docker-start.sh b/docker-start.sh deleted file mode 100755 index 6bacc81..0000000 --- a/docker-start.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/sh - - -read -sp "Enter DB password: " DB_PASS -echo - -export DB_PASS -docker-compose up -d