-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.dev
More file actions
33 lines (25 loc) · 853 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
33 lines (25 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:24 AS deps
WORKDIR /build
COPY package*.json ./
COPY yarn.lock ./
RUN yarn install
FROM node:24
WORKDIR /opt/5stack
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
containerd \
dmidecode \
util-linux \
&& rm -rf /var/lib/apt/lists/*
# crictl for resources/image-prune.sh; Debian does not package it.
ARG CRICTL_VERSION=v1.37.0
ARG TARGETARCH
RUN url="https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${TARGETARCH}.tar.gz" \
&& curl -fsSLo /tmp/crictl.tar.gz "$url" \
&& echo "$(curl -fsSL "$url.sha256") /tmp/crictl.tar.gz" | sha256sum -c - \
&& tar -xzf /tmp/crictl.tar.gz -C /usr/local/bin crictl \
&& rm /tmp/crictl.tar.gz
COPY --from=deps /build/node_modules ./node_modules
COPY . .
CMD [ "yarn", "start:dev" ]