mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-24 09:33:20 +00:00
Dockerize npm dev run
This commit is contained in:
@ -34,7 +34,7 @@ services:
|
|||||||
container_name: npm-dev
|
container_name: npm-dev
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- .:/usr/src/robosats
|
- ./frontend:/usr/src/frontend
|
||||||
networks:
|
networks:
|
||||||
- nginx_network
|
- nginx_network
|
||||||
- redis_network
|
- redis_network
|
||||||
|
@ -9,31 +9,12 @@ WORKDIR /usr/src/frontend
|
|||||||
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
|
# copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN apt update
|
RUN apt-get update
|
||||||
RUN apt -y install npm
|
RUN apt-get -y install npm
|
||||||
|
|
||||||
# packages we use
|
# packages we use
|
||||||
|
|
||||||
RUN npm init -y
|
RUN npm install
|
||||||
RUN npm install webpack webpack-cli --save-dev
|
|
||||||
RUN npm install @babel/core babel-loader @babel/preset-env @babel/preset-react --save-dev
|
|
||||||
RUN npm install react react-dom --save-dev
|
|
||||||
RUN npm install @material-ui/core
|
|
||||||
RUN npm install @babel/plugin-proposal-class-properties
|
|
||||||
RUN npm install react-router-dom@5.2.0
|
|
||||||
RUN npm install @material-ui/icons
|
|
||||||
RUN npm install material-ui-image
|
|
||||||
RUN npm install @mui/system @emotion/react @emotion/styled
|
|
||||||
RUN npm install react-native
|
|
||||||
RUN npm install react-native-svg
|
|
||||||
RUN npm install react-qr-code
|
|
||||||
RUN npm install @mui/material
|
|
||||||
RUN npm install websocket
|
|
||||||
RUN npm install react-countdown
|
|
||||||
RUN npm install @mui/icons-material
|
|
||||||
RUN npm install @mui/x-data-grid
|
|
||||||
RUN npm install react-responsive
|
|
||||||
RUN npm install react-qr-reader
|
|
||||||
|
|
||||||
# launch
|
# launch
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
12
setup.md
12
setup.md
@ -223,8 +223,14 @@ systemctl enable clean_orders
|
|||||||
```
|
```
|
||||||
docker-compose build --no-cache
|
docker-compose build --no-cache
|
||||||
docker-compose up
|
docker-compose up
|
||||||
sudo docker exec -it rs-dev python3 manage.py makemigrations
|
sudo docker exec -it django-dev python3 manage.py makemigrations
|
||||||
sudo docker exec -it rs-dev python3 manage.py migrate
|
sudo docker exec -it django-dev python3 manage.py migrate
|
||||||
sudo docker exec -it rs-dev python3 manage.py createsuperuser
|
sudo docker exec -it django-dev python3 manage.py createsuperuser
|
||||||
docker-compose restart
|
docker-compose restart
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Monitor Django dev server
|
||||||
|
`docker attach robosats_django-dev`
|
||||||
|
|
||||||
|
Monitor npm
|
||||||
|
`docker attach robosats_npm-dev`
|
||||||
|
Reference in New Issue
Block a user