Skip to content

Commit

Permalink
Compile against Debian instead, because sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Ralston committed Mar 6, 2024
1 parent 7eee25d commit 9d716f8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# ---- Stage 0 ----
# Builds media repo binaries
FROM golang:1.20-alpine AS builder
FROM golang:1.20-bookworm AS builder

# Install build dependencies
RUN apk add --no-cache git musl-dev dos2unix build-base
RUN apt-get install -y git dos2unix build-essential

WORKDIR /opt
COPY . /opt
Expand All @@ -14,13 +14,7 @@ RUN ./build.sh

# ---- Stage 1 ----
# Final runtime stage.
FROM alpine:latest

RUN mkdir /plugins
RUN apk add --no-cache \
su-exec \
ca-certificates \
dos2unix
FROM debian:bookworm

COPY --from=builder \
/opt/bin/controller \
Expand Down

0 comments on commit 9d716f8

Please sign in to comment.