mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
13 lines
334 B
Docker
13 lines
334 B
Docker
FROM alpine:edge as builder
|
|
RUN apk add --update crystal shards yaml-dev musl-dev make
|
|
RUN mkdir /ameba
|
|
WORKDIR /ameba
|
|
COPY . /ameba/
|
|
RUN make clean && make
|
|
|
|
FROM alpine:latest
|
|
RUN apk add --update yaml pcre gc libevent libgcc
|
|
RUN mkdir /src
|
|
WORKDIR /src
|
|
COPY --from=builder /ameba/bin/ameba /usr/bin/
|
|
ENTRYPOINT [ "/usr/bin/ameba" ]
|