From 175c088776d6421240cc0268648dfcca23f527cd Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Sat, 25 May 2024 14:30:33 +0000 Subject: [PATCH] pnpm configs --- .devcontainer/devcontainer.json | 2 +- Dockerfile | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a31acb1..885dce7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,7 @@ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/base:jammy", "features": { - "ghcr.io/devcontainers-contrib/features/node-asdf:0": {}, + "ghcr.io/devcontainers/features/node:1": {}, "ghcr.io/devcontainers/features/docker-in-docker:2": {} } diff --git a/Dockerfile b/Dockerfile index 97eb7d7..78fe005 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,11 @@ WORKDIR /app # Copy all local files into the image COPY . . -# Clean install all node modules -RUN npm ci +# Install pnpm +RUN npm install -g pnpm + +# Clean install all node modules using pnpm +RUN pnpm install # Build SvelteKit app RUN npm run build @@ -19,13 +22,10 @@ RUN npm run build # Expose the port that the app is listening on EXPOSE 3000 - RUN chmod +x ./startup.sh # The USER instruction sets the user name to use as the default user for the remainder of the current stage USER node:node -# get permission to run startup script - # Run startup.sh instead of the default command -CMD ["./startup.sh"] +CMD ["./startup.sh"] \ No newline at end of file