more fixes
This commit is contained in:
@@ -8,16 +8,16 @@ COPY package*.json ./
|
||||
COPY yarn.lock* ./
|
||||
|
||||
# Install all dependencies (including dev for build)
|
||||
RUN npm install && npm cache clean --force
|
||||
RUN yarn install --frozen-lockfile && yarn cache clean
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
RUN yarn build
|
||||
|
||||
# Clean dev dependencies
|
||||
RUN npm prune --production
|
||||
RUN yarn install --production --frozen-lockfile
|
||||
|
||||
# Production stage
|
||||
FROM node:18-alpine AS production
|
||||
|
||||
Reference in New Issue
Block a user