Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ FROM --platform=$BUILDPLATFORM oven/bun:1.2 AS base
LABEL maintainer="Grimoire Developers <[email protected]>"
LABEL description="Bookmark manager for the wizards"
LABEL org.opencontainers.image.source="https://github.com/goniszewski/grimoire"
RUN adduser --disabled-password --gecos '' --uid 10001 grimoire
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos '' --uid 10001 grimoire

FROM base AS builder

Expand All @@ -15,13 +18,13 @@ RUN if [ "${TARGETARCH}" = "arm64" ]; then \
apt-get update && \
apt-mark hold libc-bin && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
xz-utils wget python3 python3-pip build-essential && \
ca-certificates xz-utils wget python3 python3-pip build-essential && \
rm -rf /var/lib/apt/lists/*; \
else \
# Standard installation for other architectures
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
xz-utils python3 python3-pip wget build-essential && \
ca-certificates xz-utils python3 python3-pip wget build-essential && \
rm -rf /var/lib/apt/lists/*; \
fi

Expand Down
9 changes: 6 additions & 3 deletions Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM --platform=$BUILDPLATFORM oven/bun:1.2-alpine AS base
RUN adduser --disabled-password --gecos '' --uid 10001 grimoire
RUN apk add --no-cache ca-certificates && update-ca-certificates && \
adduser --disabled-password --gecos '' --uid 10001 grimoire

FROM base AS builder
LABEL maintainer="Grimoire Developers <[email protected]>"
Expand All @@ -14,12 +15,14 @@ RUN if [ "${TARGETARCH}" = "arm64" ]; then \
# ARM64 build - avoid libc-bin issues in Alpine
apk update && \
apk add --no-cache \
xz wget python3 py3-pip build-base; \
ca-certificates xz wget python3 py3-pip build-base && \
update-ca-certificates; \
else \
# Standard installation for other architectures
apk update && \
apk add --no-cache \
xz wget python3 py3-pip build-base; \
ca-certificates xz wget python3 py3-pip build-base && \
update-ca-certificates; \
fi


Expand Down