Skip to content

Instantly share code, notes, and snippets.

@daniil4udo
Last active March 10, 2022 16:02
Show Gist options
  • Save daniil4udo/2f0d5361b9b2d6d8f5b64e102a6c61ed to your computer and use it in GitHub Desktop.
Save daniil4udo/2f0d5361b9b2d6d8f5b64e102a6c61ed to your computer and use it in GitHub Desktop.
Dockerfile for slim Node and pre-installed pnpm
# syntax=docker/dockerfile:experimental
# 🟠 If the Docker image is built on an M1 chip then you’ll notice this container error
# docker rmi --force daniil4udo/pnpm-slim:latest
# DOCKER_BUILDKIT=1 docker buildx build --platform=linux/amd64 -t daniil4udo/pnpm-slim . --no-cache
# docker push daniil4udo/pnpm-slim:latest
FROM --platform=linux/amd64 node:14.19.0-buster-slim
RUN npm i -g pnpm@^6
RUN pnpm config set store-dir .pnpm-store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment