DEVELOPMENT ENVIRONMENT

~liljamo/liljamo-dev-zola

8e325e56a4da5f070849f37985605ad05184dd88 — Jonni Liljamo a month ago 3d2750f
feat: remove docker stuff
3 files changed, 0 insertions(+), 47 deletions(-)

D docker/Dockerfile
M justfile
D nginx.conf
D docker/Dockerfile => docker/Dockerfile +0 -17
@@ 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

M justfile => justfile +0 -8
@@ 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"


D nginx.conf => nginx.conf +0 -22
@@ 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;
    }
}