mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix cli url opener and add minimal debug docker config
This commit is contained in:
14
docker/debug/Dockerfile.minimal
Normal file
14
docker/debug/Dockerfile.minimal
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Install Node.js and npm
|
||||
RUN apk add --no-cache nodejs npm
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Create package.json with type: module
|
||||
RUN echo '{"type":"module"}' > package.json
|
||||
|
||||
# Keep container running (can be overridden)
|
||||
CMD ["sh"]
|
||||
|
||||
12
docker/debug/run-minimal.sh
Executable file
12
docker/debug/run-minimal.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Build the minimal Alpine image with Node.js
|
||||
docker build -f Dockerfile.minimal -t bknd-minimal .
|
||||
|
||||
# Run the container with the whole app/src directory mapped
|
||||
docker run -it --rm \
|
||||
-v "$(pwd)/../app:/app/app" \
|
||||
-w /app \
|
||||
-p 1337:1337 \
|
||||
bknd-minimal
|
||||
|
||||
Reference in New Issue
Block a user