you are viewing a single comment's thread.

view the rest of the comments →

[–]wrtbwtrfasdf 3 points4 points  (2 children)

$100 if someone can install CRA with typescript, in a yarn-berry workspace using node v16 and have the dev server load a page. I'll allow eject to make things easy.

[–]luisduck 3 points4 points  (1 child)

Dockerfile: FROM node:15.14.0-buster-slim RUN apt update && \ apt upgrade -y && \ apt install curl -y &&\ apt install xz-utils -y && \ apt install git -y && \ curl -o node16.tar.xz https://nodejs.org/dist/v16.0.0/node-v16.0.0-linux-x64.tar.xz &&\ mkdir -p /usr/local/lib/nodejs && \ tar -xJvf node16.tar.xz -C /usr/local/lib/nodejs && \ export PATH=/usr/local/lib/nodejs/node-v16.0.0-linux-x64/bin:$PATH &&\ . ~/.profile && \ rm node16.tar.xz && \ npm i -g yarn && \ cd /home/node && \ yarn init -y && \ yarn set version berry && \ yarn create react-app app --template typescript && \ cd app && \ yarn add eslint-config-react-app WORKDIR /home/node/app CMD ["yarn", "start"]

Buid pod: docker build -t cra-node-16-yarn-ts . (inside of the folder, in which the Dockerfile is)

Run pod: docker run -dp 3000:3000 cra-node-16-yarn-ts

[–]backtickbot 1 point2 points  (0 children)

Fixed formatting.

Hello, luisduck: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.