Skip to content

Instantly share code, notes, and snippets.

View mnahkies's full-sized avatar

Michael Nahkies mnahkies

View GitHub Profile
@mnahkies
mnahkies / nextjs yarn 4 local cache dockerfile.md
Created April 2, 2024 16:37
nextjs yarn 4 local cache dockerfile

dockerfile

# syntax=docker.io/docker/dockerfile:1.7-labs
FROM node:20 AS base
RUN corepack enable

FROM base AS deps
WORKDIR /app

COPY package.json yarn.lock .yarnrc.yml ./

Keybase proof

I hereby claim:

  • I am mnahkies on github.
  • I am mnahkies (https://keybase.io/mnahkies) on keybase.
  • I have a public key ASCYiUaOEDWBcMV86hIDZDFqPn__oQrxWMyhRy0PFYWZxwo

To claim this, I am signing this object:

@mnahkies
mnahkies / memory-leak-repro.js
Created April 29, 2016 06:07
Memory usage increases seemingly without bound.
function allocateMemory(len) {
var s = "";
for (var i = 0; i < len; i++) {
s += "x";
}
return s.length;
}