Skip to content

Commit 14a1fc1

Browse files
authored
Update Dockerfile
1 parent 881f30b commit 14a1fc1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ CMD [ "/bot/typst-bot" ]
2121
ENV DB_PATH=/bot/sqlite/db.sqlite \
2222
CACHE_DIRECTORY=/bot/cache
2323

24+
# Create the necessary directories and the empty database file
25+
RUN mkdir -p /bot/sqlite /bot/cache && \
26+
touch /bot/sqlite/db.sqlite
27+
2428
# The only files we need from the build stage in order to run the bot are the two executables.
2529
COPY --from=build \
2630
/typst-bot/target/release/worker \

0 commit comments

Comments
 (0)