diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b2ecd841 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM node:17-alpine3.12 +COPY . /usr/src/app +WORKDIR /usr/src/app +RUN npm install \ No newline at end of file diff --git a/README.md b/README.md index 00597e16..7324ece2 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,13 @@ npm install npm run start ``` +or + +``` +export DOCKER_DEFAULT_PLATFORM=linux/amd64 # Only for M1 chips +docker compose up +``` + Then head to `localhost:3000` in your browser. ### Remixing and Forking diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..ba84ecb4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.9' +services: + moonrider: + build: . + ports: + - "3000:3000" + volumes: + - .:/app + command: npm run start + environment: + - NODE_OPTIONS=--openssl-legacy-provider \ No newline at end of file