I am trying to use Docker to run a react app to test bun.
So basically my Dockerfile is:
FROM oven/bun:latest #V1.0.0
COPY ./react-app .
RUN apt-get update && apt-get install -y curl unzip && \
curl -fsSL https://bun.sh/install | bash && \
bun install
CMD ["bun", "run", "start"]
The issue is that when the container starts I get the following error:
"Something is already running on port 3000."
The package.json is:
{
"name": "react-project",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.15.0",
"react-scripts": "5.0.1"
},
"scripts": {
"start": "react-scripts start"
}
}
And docker-compose.yml is:
version: '3.8'
services:
bun-test:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
Thanks 🙂
