From 8e325e56a4da5f070849f37985605ad05184dd88 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 22 Oct 2024 00:35:21 +0300 Subject: [PATCH] feat: remove docker stuff --- docker/Dockerfile | 17 ----------------- justfile | 8 -------- nginx.conf | 22 ---------------------- 3 files changed, 47 deletions(-) delete mode 100644 docker/Dockerfile delete mode 100644 nginx.conf diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 77f18bd..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM alpine:edge AS builder - -RUN apk add zola - -RUN mkdir /src -WORKDIR /src - -COPY . /src - -RUN zola build - -# -- - -FROM nginx:1.25.3-alpine - -COPY --from=builder /src/public /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/justfile b/justfile index 8adf98d..943fad7 100644 --- a/justfile +++ b/justfile @@ -4,11 +4,3 @@ _default: build: tailwindcss -i ./css/style.css -o ./static/css/style.css --minify zola build - -build-docker-and-push: - #!/usr/bin/env sh - export COMMIT=$(git log -1 --pretty=%h) - podman build -f docker/Dockerfile -t oci:5000/liljamo/liljamo-dev-zola:latest -t oci:5000/liljamo/liljamo-dev-zola:"$COMMIT" . - podman push --tls-verify=false oci:5000/liljamo/liljamo-dev-zola:latest - podman push --tls-verify=false oci:5000/liljamo/liljamo-dev-zola:"$COMMIT" - diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 91f1a32..0000000 --- a/nginx.conf +++ /dev/null @@ -1,22 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name _; - - access_log /var/log/nginx/host.access.log main; - - gzip on; - gzip_comp_level 6; - gzip_types - text/html - text/css - application/javascript - image/svg+xml; - - root /usr/share/nginx/html; - error_page 404 /404.html; - - location / { - index index.html; - } -} -- 2.44.1