This commit is contained in:
@ -6,16 +6,14 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
# Install dependencies with increased timeout and retry settings
|
# Install dependencies
|
||||||
RUN yarn config set network-timeout 300000 && \
|
RUN npm install
|
||||||
yarn config set network-concurrency 1 && \
|
|
||||||
yarn install --frozen-lockfile --network-timeout 300000
|
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
RUN yarn build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
Reference in New Issue
Block a user