From 16225573991da3ab51743ff9c2eb28b75466727a Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Sun, 30 Jun 2024 06:32:12 -0400 Subject: [PATCH] switch dockerfile to scratch --- Dockerfile | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c15938..3abb4b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,4 @@ -FROM alpine:edge - -RUN apk add --no-cache git -RUN apk add --no-cache musl-dev -RUN apk add --no-cache gcc -RUN apk add --no-cache sqlite -RUN apk add --no-cache go -RUN apk add --no-cache perl -RUN apk add --no-cache make +FROM scratch VOLUME /app/var VOLUME /app/src @@ -16,9 +8,6 @@ ARG gomaxprocs="8" WORKDIR /app -ENV SRC_DIR=/app/src/catbase/ -RUN mkdir -p $SRC_DIR - ENV TWITCHAUTHORIZATION="OAuth " ENV TWITCHCLIENTID="" ENV UNTAPPDTOKEN="" @@ -48,10 +37,8 @@ ENV GOMAXPROCS=8 ADD . $SRC_DIR -RUN apk add --no-cache tzdata ENV TZ America/New_York -RUN git clone https://github.com/chrissexton/rank-amateur-cowsay.git cowsay && cd cowsay && ./install.sh -RUN cd $SRC_DIR; go get ./...; go build -o /app/catbase +COPY catbase /app/catbase ENTRYPOINT ["/app/catbase", "-db=/app/var/catbase.db", "-debug"]