1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 22:39:36 +02:00

pnpm configs

This commit is contained in:
Sean Morley 2024-05-25 14:30:33 +00:00
parent fb749d0cb2
commit 175c088776
2 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,7 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy", "image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": { "features": {
"ghcr.io/devcontainers-contrib/features/node-asdf:0": {}, "ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {} "ghcr.io/devcontainers/features/docker-in-docker:2": {}
} }

View file

@ -10,8 +10,11 @@ WORKDIR /app
# Copy all local files into the image # Copy all local files into the image
COPY . . COPY . .
# Clean install all node modules # Install pnpm
RUN npm ci RUN npm install -g pnpm
# Clean install all node modules using pnpm
RUN pnpm install
# Build SvelteKit app # Build SvelteKit app
RUN npm run build RUN npm run build
@ -19,13 +22,10 @@ RUN npm run build
# Expose the port that the app is listening on # Expose the port that the app is listening on
EXPOSE 3000 EXPOSE 3000
RUN chmod +x ./startup.sh 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 # The USER instruction sets the user name to use as the default user for the remainder of the current stage
USER node:node USER node:node
# get permission to run startup script
# Run startup.sh instead of the default command # Run startup.sh instead of the default command
CMD ["./startup.sh"] CMD ["./startup.sh"]