Skip to content

Commit 5b985d2

Browse files
committed
fix: fix missing fetch for js files in dockerfile
1 parent 63c9d14 commit 5b985d2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
static/globals.css
2+
static/htmx-preload.js
3+
static/htmx.js
4+
static/alpine.js
5+
static/toastify.js
6+
static/toastify.css

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN mkdir -p static && \
1919
curl -Lo static/daisyui.mjs https://github.com/saadeghi/daisyui/releases/latest/download/daisyui.mjs && \
2020
curl -Lo static/daisyui-theme.mjs https://github.com/saadeghi/daisyui/releases/latest/download/daisyui-theme.mjs
2121

22+
COPY templates/ templates/
2223
COPY static/tw.css static/tw.css
2324
RUN /bin/tailwindcss -i static/tw.css -o static/globals.css -m
2425

@@ -27,13 +28,16 @@ FROM astral/uv:python3.13-alpine AS python-deps
2728
WORKDIR /app
2829
COPY uv.lock pyproject.toml ./
2930
RUN uv sync --frozen --no-cache --no-dev
31+
COPY app/util/fetch_js.py app/util/fetch_js.py
32+
RUN mkdir -p static && /app/.venv/bin/python app/util/fetch_js.py
3033

3134
# ---- Final ----
3235
FROM python:3.13-alpine AS final
3336
WORKDIR /app
3437

3538
COPY --from=css /app/static/globals.css static/globals.css
3639
COPY --from=python-deps /app/.venv /app/.venv
40+
COPY --from=python-deps /app/static static/
3741

3842
COPY static/ static/
3943
COPY alembic/ alembic/

static/.dockerignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)