Use existing package.json
This commit is contained in:
parent
dce1bb6a3f
commit
6c981d2b5c
1 changed files with 2 additions and 10 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -11,18 +11,10 @@ RUN apk add --no-cache python3 make g++ curl git libc6-compat
|
|||
RUN npm cache clean --force
|
||||
RUN npm install -g npm@latest
|
||||
|
||||
# Install dependencies with matching versions
|
||||
# Install dependencies from package.json
|
||||
COPY package*.json ./
|
||||
RUN npm ci --no-optional --platform=linux --arch=x64 --libc=musl
|
||||
RUN npm ci
|
||||
RUN npm install -g typescript
|
||||
RUN npm install --save-dev @types/react-dom @types/react @types/node
|
||||
RUN npm install @rollup/rollup-linux-x64-musl
|
||||
RUN npm install esbuild@0.21.5
|
||||
RUN npm install vite @vitejs/plugin-react --save-dev
|
||||
|
||||
# Create src directory and type declarations
|
||||
RUN mkdir -p src
|
||||
RUN echo "declare module '*.css'" > src/types.d.ts
|
||||
|
||||
# Copy source code and build
|
||||
COPY . .
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue