Something went wrong. Try again.
A Takuzu game native to the AT Protocol. atkuzu.tomplanche.com
binairo atproto game takuzu
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435#Had problems with pnpm and sqlite, so just using npm. bit longer but gets the job done.
#Builds the takuzu-grid-factory wasm module /play needs; not part of the node image, so it#gets its own stage with the Rust toolchain wasm-pack needs.FROM rust:1-slim AS wasm-builderWORKDIR /wasmRUN rustup target add wasm32-unknown-unknown \ && cargo install wasm-packCOPY takuzu-grid-factory ./takuzu-grid-factoryRUN wasm-pack build takuzu-grid-factory --target web --out-dir /wasm/pkg
FROM node:24-slim AS builderWORKDIR /app
COPY package.json ./RUN npm install
COPY . .COPY --from=wasm-builder /wasm/pkg ./src/lib/wasm/pkg#Needs a place holder during buildENV DATABASE_URL="placeholder"RUN npm run build
FROM node:24-alpine3.22 AS web-appWORKDIR /app
COPY --from=builder /app/build /app/distCOPY --from=builder /app/package.json /app/COPY ./drizzle /app/drizzleENV MIGRATIONS_FOLDER="/app/drizzle"
RUN npm install --prod
#This is saying run what's in the dist folderCMD ["node", "/app/dist/index.js"]