diff --git a/.gitignore b/.gitignore index eab0e7a..b02e95c 100644 --- a/.gitignore +++ b/.gitignore @@ -135,3 +135,4 @@ dist # bun bun.lockb +data/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4006cb5 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f727914 --- /dev/null +++ b/docker-compose.yml @@ -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