mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
add Dockerfile.dev & docker-compose.yml
This commit is contained in:
parent
4a2bfea219
commit
b9dbe8a35e
9
Dockerfile.dev
Normal file
9
Dockerfile.dev
Normal 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" ]
|
@ -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
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
iris-messenger:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
|
volumes:
|
||||||
|
- .:/iris-messenger
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
Loading…
Reference in New Issue
Block a user