mirror of https://github.com/velour/catbase.git
switch dockerfile to scratch
This commit is contained in:
parent
2697e6a259
commit
1622557399
17
Dockerfile
17
Dockerfile
|
@ -1,12 +1,4 @@
|
||||||
FROM alpine:edge
|
FROM scratch
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
VOLUME /app/var
|
VOLUME /app/var
|
||||||
VOLUME /app/src
|
VOLUME /app/src
|
||||||
|
@ -16,9 +8,6 @@ ARG gomaxprocs="8"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV SRC_DIR=/app/src/catbase/
|
|
||||||
RUN mkdir -p $SRC_DIR
|
|
||||||
|
|
||||||
ENV TWITCHAUTHORIZATION="OAuth "
|
ENV TWITCHAUTHORIZATION="OAuth "
|
||||||
ENV TWITCHCLIENTID=""
|
ENV TWITCHCLIENTID=""
|
||||||
ENV UNTAPPDTOKEN=""
|
ENV UNTAPPDTOKEN=""
|
||||||
|
@ -48,10 +37,8 @@ ENV GOMAXPROCS=8
|
||||||
|
|
||||||
ADD . $SRC_DIR
|
ADD . $SRC_DIR
|
||||||
|
|
||||||
RUN apk add --no-cache tzdata
|
|
||||||
ENV TZ America/New_York
|
ENV TZ America/New_York
|
||||||
|
|
||||||
RUN git clone https://github.com/chrissexton/rank-amateur-cowsay.git cowsay && cd cowsay && ./install.sh
|
COPY catbase /app/catbase
|
||||||
RUN cd $SRC_DIR; go get ./...; go build -o /app/catbase
|
|
||||||
|
|
||||||
ENTRYPOINT ["/app/catbase", "-db=/app/var/catbase.db", "-debug"]
|
ENTRYPOINT ["/app/catbase", "-db=/app/var/catbase.db", "-debug"]
|
||||||
|
|
Loading…
Reference in New Issue