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