Last active
March 10, 2022 16:02
-
-
Save daniil4udo/2f0d5361b9b2d6d8f5b64e102a6c61ed to your computer and use it in GitHub Desktop.
Dockerfile for slim Node and pre-installed pnpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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