Skip to content

Commit be7354e

Browse files
committed
PPHA-262: Fix asset compilation in dev
1 parent 55dc795 commit be7354e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:24.10.0-alpine3.21 AS asset_builder
33
WORKDIR /app
44

55
COPY package.json package-lock.json rollup.config.js ./
6-
COPY lung_cancer_screening ./lung_cancer_screening
6+
COPY . .
77
RUN npm ci
88
RUN npm run compile
99

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
- .env
1414
depends_on:
1515
- db
16+
- asset_builder
1617
volumes:
1718
- ./:/app
1819
- venv:/app/.venv
@@ -26,7 +27,8 @@ services:
2627
target: asset_builder
2728
command: npm run watch
2829
volumes:
29-
- ./lung_cancer_screening/assets/compiled:/app/lung_cancer_screening/assets/compiled
30+
- ./:/app
31+
- node_modules:/app/node_modules
3032

3133
db:
3234
image: postgres:15-alpine
@@ -48,3 +50,4 @@ volumes:
4850
redis_data:
4951
venv:
5052
playwright_browsers:
53+
node_modules:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"scripts": {
88
"compile": "concurrently npm:compile:js npm:compile:css --group --prefix none",
9-
"compile:css": "sass --color --quiet-deps --silence-deprecation=import --load-path=. --load-path=node_modules lung_cancer_screening/assets/sass:lung_cancer_screening/assets/compiled/css",
9+
"compile:css": "sass --color --quiet-deps --load-path=node_modules lung_cancer_screening/assets/sass:lung_cancer_screening/assets/compiled/css",
1010
"compile:css:watch": "npm run compile:css -- --watch",
1111
"compile:js": "rollup -c rollup.config.js --sourcemap",
1212
"compile:js:watch": "npm run compile:js -- --watch",

0 commit comments

Comments
 (0)