From 2cdca4d02d32343958212369547f769cd3253e6b Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 16:11:19 +0900 Subject: [PATCH] feat: add script to run docker with volume mounts --- Dockerfile | 5 ++++- run-docker.sh | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 run-docker.sh diff --git a/Dockerfile b/Dockerfile index b5ddf2d..19c4621 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ FROM oven/bun:latest # Set the working directory WORKDIR /app +# Create a volume for the working directory +VOLUME /app + # Copy project files COPY . . @@ -14,4 +17,4 @@ RUN bun install EXPOSE 3000 # Command to run the application -CMD ["bun", "run", "server.ts"] +CMD ["bun", "run", "/app/server.ts"] diff --git a/run-docker.sh b/run-docker.sh new file mode 100644 index 0000000..ef0f32b --- /dev/null +++ b/run-docker.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Run Docker container with volume mounts for feed_urls.txt and .env +docker run \ + --volume "$(pwd)/feed_urls.txt:/app/feed_urls.txt" \ + --volume "$(pwd)/.env:/app/.env" \ + --publish 3000:3000 \ + --tty \ + --interactive \ + voice-rss-summary