Skip to content

Why is pnpm build used in Docker with-docker-multi-env example but not in with-docker-compose example for Development Mode? #62943

Closed Answered by deadcoder0904
deadcoder0904 asked this question in Help
Discussion options

You must be logged in to vote

Yeah, so the example above needs to be updated because I wanted to try development mode with Docker. I couldn't just do pnpm dev because my Redis server needed to be on & I am on Windows where Redis doesn't work.

Now I could've just used Redis on WSL2 but that wouldn't be fun so I did the dumb thing & built separate Dockerfiles for development, staging, & production.

docker/development/Dockerfile

FROM node:20-alpine AS base

# mostly inspired from https://github.com/BretFisher/node-docker-good-defaults/blob/main/Dockerfile & https://github.com/remix-run/example-trellix/blob/main/Dockerfile

# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant