feat: add script to run docker with volume mounts
This commit is contained in:
@ -4,6 +4,9 @@ FROM oven/bun:latest
|
|||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Create a volume for the working directory
|
||||||
|
VOLUME /app
|
||||||
|
|
||||||
# Copy project files
|
# Copy project files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@ -14,4 +17,4 @@ RUN bun install
|
|||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
# Command to run the application
|
# Command to run the application
|
||||||
CMD ["bun", "run", "server.ts"]
|
CMD ["bun", "run", "/app/server.ts"]
|
||||||
|
10
run-docker.sh
Normal file
10
run-docker.sh
Normal file
@ -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
|
Reference in New Issue
Block a user