Skip to content

Commit 828e8da

Browse files
More changes
1 parent 8eb2e44 commit 828e8da

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

infra/scripts/package_frontend.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -eou pipefail
3+
4+
mkdir -p dist
5+
rm -rf dist/*
6+
7+
#python
8+
cp -f requirements.txt dist
9+
cp -f *.py dist
10+
11+
#node
12+
npm install
13+
npm run build
14+
cp -rf build dist

src/backend/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ WORKDIR /app
1010
COPY uv.lock pyproject.toml /app/
1111

1212
# Install the project's dependencies using the lockfile and settings
13-
RUN --mount=type=cache,target=/root/.cache/uv \
14-
--mount=type=bind,source=uv.lock,target=uv.lock \
15-
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
16-
uv sync --frozen --no-install-project --no-dev
13+
# RUN --mount=type=cache,target=/root/.cache/uv \
14+
# --mount=type=bind,source=uv.lock,target=uv.lock \
15+
# --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
16+
# uv sync --frozen --no-install-project --no-dev
17+
RUN uv sync --frozen --no-install-project --no-dev
1718

1819
# Backend app setup
1920
COPY . /app
20-
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev
21+
#RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev
22+
RUN uv sync --frozen --no-dev
23+
2124

2225
FROM base
2326

@@ -28,4 +31,4 @@ ENV PATH="/app/.venv/bin:$PATH"
2831
# Install dependencies
2932

3033
EXPOSE 8000
31-
CMD ["uv", "run", "uvicorn", "app_kernel:app", "--host", "0.0.0.0", "--port", "8000"]
34+
CMD ["uv", "run", "uvicorn", "app_kernel:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)