Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tinpotnick committed Oct 31, 2022
1 parent 50e9727 commit 2ac7f5d
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 2ac7f5d

Please sign in to comment.