Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#5529 from karlkfi/karl-pin-site-deps
Browse files Browse the repository at this point in the history
chore: pin dev deps in the dev container
  • Loading branch information
k8s-ci-robot authored Feb 7, 2024
2 parents 31b852c + 3bd9ea8 commit cf01ceb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions site/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ RUN apk add --no-cache \
git \
openssh-client \
rsync \
npm && \
npm install -D autoprefixer postcss-cli
npm

RUN mkdir -p /usr/local/node_packages
WORKDIR /usr/local/node_packages
COPY package.json ./
COPY package-lock.json ./
RUN npm install -D autoprefixer postcss-cli
ENV PATH="/usr/local/node_packages/node_modules/.bin:${PATH}"

RUN mkdir -p /var/hugo && \
addgroup -Sg 1000 hugo && \
Expand Down

0 comments on commit cf01ceb

Please sign in to comment.