From c458367bd1c3cf85732043c13834aa6334a59dc1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 17 Feb 2024 15:44:53 +0100 Subject: [PATCH] Switch to bci-micro Use the SUSE bci-micro container as base container. This is needed because sqlite3 cannot run with with cgo turned on, so we need to get away from the scratch container. --- Containerfile | 4 ++-- Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 3da99fe..5db151f 100644 --- a/Containerfile +++ b/Containerfile @@ -2,9 +2,9 @@ FROM docker.io/golang:alpine AS builder WORKDIR /app ADD . /app RUN apk update && apk add build-base -RUN cd /app && make requirements && make ot-browser-static +RUN cd /app && make requirements && make ot-browser -FROM scratch +FROM registry.suse.com/bci/bci-micro WORKDIR /app COPY --from=builder /app/www /www COPY --from=builder /app/ot-browser /usr/bin/ot-browser diff --git a/Makefile b/Makefile index f6fb005..bb5f514 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,8 @@ ot-browser-static: cmd/ot-browser/*.go test: go test ./... -container: Dockerfile cmd/ot-browser/*.go - docker build . -t feldspaten.org/ot-browser +container: Containerfile cmd/ot-browser/*.go + podman build . -t feldspaten.org/ot-browser #deploy: Dockerfile cmd/ot-browser/*.go # docker build . -t grisu48/ot-browser