Skip to content

Commit

Permalink
Merge pull request #20 from RADAR-base/live-reload
Browse files Browse the repository at this point in the history
Added Dockerfile and docker-compose for live reload during development
  • Loading branch information
this-Aditya committed Sep 3, 2024
2 parents d17b2ed + 543c236 commit 632d677
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20.9.0-alpine

RUN mkdir -p /app

WORKDIR /app

COPY package*.json ./

RUN npm install

ENV PORT=3000

EXPOSE 3000

CMD ["npm", "run", "dev", "--", "-p", "3000"]
11 changes: 11 additions & 0 deletions docker-compose.live-reload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'
services:
sep-ui-live-dev:
build:
context: .
dockerfile: ./Dockerfile.dev
ports:
- '3000:3000'
volumes:
- .:/app
- /app/node_modules

0 comments on commit 632d677

Please sign in to comment.