Skip to content

Commit

Permalink
Use npm instead of pnpm (#259)
Browse files Browse the repository at this point in the history
* Use npm instead of pnpm

* Update Dockerfile
  • Loading branch information
harryzcy authored May 2, 2023
1 parent 1c700b4 commit 18c84b7
Show file tree
Hide file tree
Showing 3 changed files with 5,041 additions and 3,444 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,10 @@ ARG BUILD_VERSION

WORKDIR /app

ENV NPM_VERSION 9.4.0
ENV PNPM_VERSION 7.26.2
RUN npm install -g npm@${NPM_VERSION} && npm -g install pnpm@${PNPM_VERSION}

COPY web ./
RUN pnpm fetch && \
pnpm install -r --offline && \
echo "export const browserVersion = \"${BUILD_VERSION}\"" > src/utils/info.ts && \
pnpm run build
RUN npm ci && \
echo "export const browserVersion = \"${BUILD_VERSION}\"" > src/utils/info.ts && \
npm run build

FROM alpine:3.17.3

Expand Down
Loading

0 comments on commit 18c84b7

Please sign in to comment.