diff --git a/Dockerfile b/Dockerfile index f205080..2555256 100644 --- a/Dockerfile +++ b/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 . .