fix(docker): skip postinstall in production image #583
@@ -29,6 +29,6 @@ ENV NODE_ENV=production
|
||||
COPY --from=build /app/build ./build
|
||||
COPY --from=build /app/package.json ./package.json
|
||||
COPY --from=build /app/package-lock.json ./package-lock.json
|
||||
RUN npm ci --omit=dev
|
||||
RUN npm ci --omit=dev --ignore-scripts
|
||||
EXPOSE 3000
|
||||
CMD ["node", "build"]
|
||||
|
||||
Reference in New Issue
Block a user