-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
e5dc9cf
commit a0aa043
Showing
3 changed files
with
47 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,2 @@ | ||
.venv | ||
frontend/node_modules |
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,29 @@ | ||
FROM ubuntu:24.04 | ||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | ||
RUN apt-get update && apt-get install -y \ | ||
git make npm | ||
|
||
# Chromium dependencies | ||
RUN apt-get install -y fonts-noto-color-emoji libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxkbcommon0 libxdamage1 libpango-1.0-0 libcairo2 libasound2t64 | ||
|
||
ENV LC_ALL="en_US.UTF-8" | ||
USER ubuntu | ||
|
||
WORKDIR /usr/src/app | ||
RUN mkdir frontend | ||
|
||
# Python dependencies | ||
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
--mount=type=bind,source=uv.lock,target=uv.lock \ | ||
--mount=type=cache,target=/home/ubuntu/.cache/uv,uid=1000 \ | ||
uv sync --frozen --no-install-project | ||
|
||
# Node.js dependencies | ||
RUN --mount=type=bind,source=frontend/package.json,target=frontend/package.json \ | ||
--mount=type=bind,source=frontend/package-lock.json,target=frontend/package-lock.json \ | ||
--mount=type=cache,target=/home/ubuntu/.npm,uid=1000 \ | ||
cd frontend && npm ci && npx puppeteer browsers install chrome | ||
|
||
COPY --chown=ubuntu:ubuntu . . | ||
RUN make build | ||
CMD ["make", "run"] |
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