Skip to content

Commit

Permalink
chore: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Sep 3, 2024
1 parent 7841f15 commit 751652f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
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"]

0 comments on commit 751652f

Please sign in to comment.