Added sessionData dir to Dockerfile init process to make volume optional, removed volume from compose file
Some checks failed
Create and publish the bot container / build-and-push-image (push) Has been cancelled

This commit is contained in:
Brad Ganley 2024-12-30 07:59:32 +00:00
parent 6d61b070a6
commit 62e0ef1905
2 changed files with 3 additions and 12 deletions

View File

@ -1,6 +1,6 @@
FROM oven/bun:latest AS base FROM oven/bun:latest AS base
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN mkdir /sessionData && chmod 177 /sessionData
# install dependencies into temp directory # install dependencies into temp directory
# this will cache them and speed up future builds # this will cache them and speed up future builds
FROM base AS install FROM base AS install

View File

@ -3,8 +3,6 @@ services:
bskybot: bskybot:
build: . build: .
restart: unless-stopped restart: unless-stopped
volumes:
- ./sessionData:/sessionData
env_file: env_file:
- .env - .env
environment: environment:
@ -16,11 +14,4 @@ services:
#- DEBUG_LOG_LEVEL=info #- DEBUG_LOG_LEVEL=info
#- JETSTREAM_URL='wss://jestream1.us-west.bsky.network/subscribe' #- JETSTREAM_URL='wss://jestream1.us-west.bsky.network/subscribe'
#- SESSION_DATA_PATH='/sessionData' #- SESSION_DATA_PATH='/sessionData'
networks: networks_mode: bridge
- bun
networks:
bun:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/16