-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leonardo Diegues
committed
Nov 30, 2021
1 parent
9157615
commit b364db8
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |