Use existing package.json

This commit is contained in:
TheMaddax 2024-11-23 21:14:04 -06:00
parent dce1bb6a3f
commit 6c981d2b5c

View file

@ -11,18 +11,10 @@ RUN apk add --no-cache python3 make g++ curl git libc6-compat
RUN npm cache clean --force RUN npm cache clean --force
RUN npm install -g npm@latest RUN npm install -g npm@latest
# Install dependencies with matching versions # Install dependencies from package.json
COPY 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 -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 source code and build
COPY . . COPY . .