forked from Helias/Telegram-DMI-Bot
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Showing
1 changed file
with
6 additions
and
4 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
FROM python:3.10-slim | ||
WORKDIR /dmibot/ | ||
|
||
# web app dependencies & build | ||
RUN apt-get update && apt-get install -y curl | ||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs | ||
|
||
COPY requirements.txt . | ||
RUN pip3 install -r requirements.txt | ||
|
||
# web app dependencies & build | ||
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs | ||
RUN mkdir -p webapp/dist; cd webapp/; npm install; npx parcel build index.html; cd .. | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p webapp/dist; cd webapp/; npm install; npx parcel build index.html; cd .. | ||
|
||
ENTRYPOINT ["python3", "main.py"] |