Skip to content

Commit

Permalink
Adiciona Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Diegues committed Nov 30, 2021
1 parent 9157615 commit b364db8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.9.9-slim

ENV POETRY_VERSION 1.1.11

WORKDIR /app

RUN pip install 'poetry==${POETRY_VERSION}'

RUN python -m poetry install --no-dev

COPY scripts/ scripts

RUN chmod +x ./scripts/run_crawlers.sh
RUN chmod +x ./scripts/publish_thread.sh

11 changes: 11 additions & 0 deletions scripts/run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/bash

LIDEBOT_VERSION=0.1.0

docker build -t lidebot:$LIDEBOT_VERSION .

docker run -it --rm \
-v lidebot:/app/lidebot \
-v data:/app/data \
lidebot:$LIDEBOT_VERSION \
./scripts/run_crawlers && ./scripts/publish_thread.sh

0 comments on commit b364db8

Please sign in to comment.