add Dockerfile

This commit is contained in:
CDN18 2024-11-28 15:27:14 +08:00
parent c918f652ea
commit f4102db5ea
Signed by: CDN
GPG key ID: 0C656827F9F80080
3 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View file

@ -135,3 +135,4 @@ dist
# bun # bun
bun.lockb bun.lockb
data/

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM oven/bun:alpine
WORKDIR /app
COPY . .
RUN apk add --no-cache python3 build-base && \
bun install && \
bun run build
EXPOSE 3000
CMD ["bun", "run", "start"]

15
docker-compose.yml Normal file
View file

@ -0,0 +1,15 @@
services:
bsky-feed-starset:
container_name: bsky-feed-starset
build: .
env_file:
- .env
ports:
- "${FEEDGEN_PORT}:${FEEDGEN_PORT}"
restart: unless-stopped
volumes:
- ./data:/app/data
networks:
default:
name: bsky-feed-starset