Skip to content

Commit

Permalink
Merge pull request #26 from fabianvdW/patch-1
Browse files Browse the repository at this point in the history
Create missing state files in docker container
  • Loading branch information
mattfbacon authored Aug 6, 2024
2 parents 881f30b + 14a1fc1 commit 42d683a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ CMD [ "/bot/typst-bot" ]
ENV DB_PATH=/bot/sqlite/db.sqlite \
CACHE_DIRECTORY=/bot/cache

# Create the necessary directories and the empty database file
RUN mkdir -p /bot/sqlite /bot/cache && \
touch /bot/sqlite/db.sqlite

# The only files we need from the build stage in order to run the bot are the two executables.
COPY --from=build \
/typst-bot/target/release/worker \
Expand Down

0 comments on commit 42d683a

Please sign in to comment.