add Dockerfile.dev & docker-compose.yml

This commit is contained in:
Martti Malmi 2023-03-13 11:33:59 +02:00
parent 4a2bfea219
commit b9dbe8a35e
3 changed files with 22 additions and 0 deletions

9
Dockerfile.dev Normal file
View File

@ -0,0 +1,9 @@
FROM node:19-buster-slim
WORKDIR /iris-messenger/
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN apt-get update && apt-get install -y python3 build-essential
COPY package.json yarn.lock ./
RUN yarn
CMD [ "yarn", "dev" ]

View File

@ -64,6 +64,8 @@ npm run test
[iris.to](https://iris.to) production version is in the [stable](https://github.com/irislib/iris-messenger/tree/stable) branch. [iris.to](https://iris.to) production version is in the [stable](https://github.com/irislib/iris-messenger/tree/stable) branch.
Alternatively, you can run the dev environment on Docker: `docker-compose up`. The dev build with autoreload will be available at http://localhost:8080.
### Tauri (desktop app) ### Tauri (desktop app)
[Tauri docs](https://tauri.app/v1/guides/) [Tauri docs](https://tauri.app/v1/guides/)

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3.8'
services:
iris-messenger:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/iris-messenger
ports:
- 8080:8080