Skip to content

Commit

Permalink
Merge pull request #14 from babblevoice/master
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
paullouisageneau authored Nov 5, 2022
2 parents 50e9727 + 2ac7f5d commit 5f41cca
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine:3.16 as builder

RUN apk update --no-cache; \
apk add --no-cache cmake make gcc musl-dev;

WORKDIR /usr/src/violet
COPY . .

RUN cmake -B build; \
cd build; \
make -j2

FROM alpine:3.16 as app

RUN apk update --no-cache; \
apk add --no-cache musl;

COPY --from=builder /usr/src/violet/build/violet /usr/local/bin/

CMD [ "/usr/local/bin/violet" ]

0 comments on commit 5f41cca

Please sign in to comment.