Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Thann committed Nov 15, 2021
1 parent 3d8a518 commit 6cff632
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ wasm32-wasi/
wasm64-wasi/
x64/
x86_64-w64-mingw32/
Dockerfile
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:alpine AS base
CMD "makod"

RUN apk upgrade --no-cache

# Install build dependencies and compile
FROM base AS build
RUN apk add --no-cache gcc make cmake musl-dev
RUN mkdir -p /code
WORKDIR /code
COPY . /code/
RUN cmake . && make

FROM base
VOLUME /root/.mako
COPY --from=build /code/mako /usr/bin/mako
COPY --from=build /code/makod /usr/bin/makod

0 comments on commit 6cff632

Please sign in to comment.