Skip to content

Commit 48a9689

Browse files
committed
turns out that npm ci is needed in the docker container for mdx bundler to work with installed packages
1 parent a91dd0e commit 48a9689

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ FROM node:${NODE_VERSION}-alpine as base
66
WORKDIR /usr/src/app
77

88
FROM base as prod
9+
COPY ./package.json ./package.json
10+
COPY ./package-lock.json ./package-lock.json
11+
RUN npm ci --omit=dev
912
EXPOSE 3000
1013
USER node
1114
COPY ./public ./public

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
- ./src:/usr/src/app/src
1414
- ./tsconfig.json:/usr/src/app/tsconfig.json
1515
- ./vite.config.ts:/usr/src/app/vite.config.ts
16+
- ./package.json:/usr/src/app/package.json
17+
- ./package-lock.json:/usr/src/app/package-lock.json
1618
nginx:
1719
depends_on:
1820
- server

mdx/projects/lagrangian-particle-tracking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ tags: ["research"]
66
description: "My research on Lagrangian particle tracking in the Northern California Current System."
77
---
88

9-
import { UnderConstruction } from "@/components/UnderConstruction.tsx";
9+
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1010

1111
<UnderConstruction />

mdx/projects/pollen-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ description: "A historical time series of pollen data from the Willamette Valley
88

99
// import { TimeSeriesPlot } from "@/components/ui/Plots";
1010

11-
import { UnderConstruction } from "@/components/UnderConstruction.tsx";
11+
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1212

1313
<UnderConstruction />

mdx/projects/shelf-nitrate-response-to-upwelling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ tags: ["research"]
66
description: "My research on the response of shelf nitrate to upwelling in the Northern California Current System."
77
---
88

9-
import { UnderConstruction } from "@/components/UnderConstruction.tsx";
9+
import { UnderConstruction } from "~/components/UnderConstruction.tsx";
1010

1111
<UnderConstruction />

src/components/UnderConstruction.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Link } from "@tanstack/react-router";
21
import React from "react";
32
import { FancyLink } from "./mdx";
43

0 commit comments

Comments
 (0)