shard-ameba/Dockerfile

14 lines
354 B
Docker
Raw Normal View History

FROM alpine:edge as builder
RUN apk add --update crystal shards openssl-dev 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 openssl yaml pcre gc libevent libgcc
RUN mkdir /src
WORKDIR /src
COPY --from=builder /ameba/bin/ameba /usr/bin/
ENTRYPOINT [ "/usr/bin/ameba" ]