diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..30992a6e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +From node:14-alpine + +WORKDIR /app + +COPY . /app + +EXPOSE 8080 + +RUN npm install +CMD ["npm", "run", "dev"] diff --git a/development-compose.yml b/development-compose.yml new file mode 100644 index 000000000..47e66b1fd --- /dev/null +++ b/development-compose.yml @@ -0,0 +1,7 @@ +services: + threejs: + build: + context: . + dockerfile: ./Dockerfile + ports: + - 8080:8080 diff --git a/readme.md b/readme.md index 7c16d5456..6e9ff822f 100644 --- a/readme.md +++ b/readme.md @@ -15,3 +15,14 @@ npm run dev # Build for production in the dist/ directory npm run build ``` +## Setup with Docker +Download [Docker](https://www.docker.com/products/docker-desktop/) + +RUN the following command: +``` bash +# Build the container with compatible webpack node version + +docker compose -f development-compose.yml up +``` + +After compilation, the Red ring must be visible.