File tree Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Expand file tree Collapse file tree 2 files changed +38
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM node:18 -bullseye AS builder
1
+ FROM node:20 -bullseye AS builder
2
2
WORKDIR /app
3
3
COPY package.json next.config.js ./
4
- RUN yarn install
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ libcairo2-dev \
8
+ libpango1.0-dev \
9
+ libjpeg-dev \
10
+ libgif-dev \
11
+ librsvg2-dev \
12
+ python3 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+
16
+ # A bunch of canvas bs
17
+ ENV npm_config_canvas_binary_host_mirror=https://github.com/Automattic/node-canvas/releases/download/
18
+ ENV CXXFLAGS="-DSYZX_FEATURE_FLAG=1"
19
+
20
+ COPY package.json yarn.lock* ./
21
+ RUN yarn install --network-timeout 100000 || \
22
+ (echo "Retrying with canvas workaround..." && \
23
+ yarn add canvas@2.11.2 --network-timeout 100000 && \
24
+ yarn install --network-timeout 100000)
25
+
26
+
5
27
COPY . .
6
28
RUN yarn build
7
29
8
30
9
- FROM node:18 -bullseye
31
+ FROM node:20 -bullseye
10
32
WORKDIR /app
33
+
34
+ RUN apt-get update && apt-get install -y \
35
+ libcairo2 \
36
+ libpango-1.0-0 \
37
+ libpangocairo-1.0-0 \
38
+ libjpeg62-turbo \
39
+ libgif7 \
40
+ librsvg2-2 \
41
+ && rm -rf /var/lib/apt/lists/*
42
+
11
43
COPY --from=builder /app/.next ./.next
12
44
COPY --from=builder /app/public ./public
13
45
COPY --from=builder /app /app
46
+ COPY --from=builder /app/node_modules ./node_modules
14
47
COPY --from=builder /app/package.json ./package.json
15
48
EXPOSE 3000
16
49
RUN mkdir -p /auth
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export function CameraReadsChart({ data, loading }) {
79
79
} }
80
80
barGap = { 4 }
81
81
>
82
- < CartesianGrid vertical = { false } strokeWidth = { 0.2 } />
82
+ < CartesianGrid vertical = { false } strokeWidth = { 0.25 } />
83
83
< XAxis
84
84
dataKey = "camera"
85
85
tickLine = { false }
@@ -143,7 +143,7 @@ export function CameraReadsChart({ data, loading }) {
143
143
</ div >
144
144
) }
145
145
</ CardContent >
146
- < CardFooter className = "flex-col items-start gap-1 text-xs pt-2 md:pb-0 " >
146
+ < CardFooter className = "flex-col items-start gap-1 text-xs pt-2" >
147
147
< div className = "flex gap-2 font-medium leading-none items-center" >
148
148
Most Active: { mostActiveCamera }
149
149
< Camera className = "h-4 w-4" />
You can’t perform that action at this time.
0 commit comments