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