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.
This commit is contained in:
Felix Niederwanger 2024-02-17 15:44:53 +01:00
parent 0e68e5f5c6
commit c458367bd1
Signed by: phoenix
GPG key ID: 6E77A590E3F6D71C
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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