Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore build directories
/build
/cpp/build
/dist

/.github
/.vscode
/screenshots
/*.md
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM node:alpine AS builder

WORKDIR '/app'

COPY . .
RUN npm install && npm run build

RUN --mount=type=cache,target=/root/.npm npm install && npm run build

FROM nginx:alpine

COPY --from=builder /app/dist /usr/share/nginx/html
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.30)
cmake_minimum_required (VERSION 3.21)

project (chili-wasm)
set (CMAKE_CXX_STANDARD 17)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "npx rspack dev",
"build": "npx rspack build",
"build:wasm": "cd cpp && cmake --preset release && cmake --build --preset release",
"build:wasm": "cd cpp && cmake -G Ninja --preset release && cmake --build --preset release --target install",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"testc": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"format": "npx prettier --write . && npx clang-format --style=Webkit --sort-includes -i ./cpp/src/**",
Expand Down