Skip to content

Commit

Permalink
fix: don't install 2 versions of chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
ugomeda committed Jan 31, 2025
1 parent 9936423 commit 7c01fb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ ARG PYTHON_VERSION
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
python${PYTHON_VERSION} \
chromium \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY --from=builder /app/venv/ /app/venv/
RUN ["/app/venv/bin/python3", "-m", "playwright", "install", "chromium", "--no-shell"]
RUN ["/app/venv/bin/python3", "-m", "playwright", "install", "chromium", "--no-shell", "--with-deps"]

COPY inkplate_dashboard /app/inkplate_dashboard

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To run the server:
cp config.exemple.toml config.toml
poetry shell
poetry install
playwright install chromium --no-shell
playwright install chromium --no-shell --with-deps
uvicorn inkplate_dashboard.app:app
```

Expand Down

0 comments on commit 7c01fb1

Please sign in to comment.