Skip to content

Commit

Permalink
Fixing Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
XDavidT committed Apr 6, 2021
1 parent f95e0f2 commit 89ab68d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ FROM jrottenberg/ffmpeg:4.2-alpine

COPY scripts/entrypoint.sh /entrypoint.sh
COPY requirements.txt /requirements.txt
COPY requirements.txt /requirements.txt
COPY fonts/ app/fonts/

RUN \
chmod +x /entrypoint.sh && \
Expand Down
1 change: 0 additions & 1 deletion app/watermark_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ async def photo_handler(message):
code = await watermark(path, fname, watermark_text, c, rotate)
if code:
await message.answer('Something went wrong, please try again 😔')
await message.answer(code)
return
wm_file = await aiofiles.open(f'images/out/{c}/{fname}', 'rb')
await message.answer_photo(wm_file)
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
restart: always
volumes:
- ./app:/app
- ./fonts:/app/fonts
environment:
- TOKEN=token:token
- WATERMARK=sometexthere

0 comments on commit 89ab68d

Please sign in to comment.