shard-ameba/Dockerfile

15 lines
348 B
Docker
Raw Permalink Normal View History

FROM alpine:edge as builder
2022-12-20 16:09:28 +00:00
RUN apk add --update crystal shards yaml-dev musl-dev make
RUN mkdir /ameba
WORKDIR /ameba
COPY . /ameba/
RUN make clean && make
2021-03-06 12:37:05 +00:00
FROM alpine:latest
RUN apk add --update yaml pcre2 gc libevent libgcc
RUN mkdir /src
WORKDIR /src
COPY --from=builder /ameba/bin/ameba /usr/bin/
RUN ameba -v
ENTRYPOINT [ "/usr/bin/ameba" ]