Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# pull official base image
FROM node:13.12.0-alpine

# set working directory
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH

# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install --silent
RUN npm install react-scripts@3.4.1 -g --silent

# add app
COPY . ./

EXPOSE 3001

# start app
CMD ["npm", "start"]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ In the project directory, you can run:

### `yarn`

Install npm packages, you can run:

### `yarn install`

Installs the required npm packages.

### `yarn start`
Expand Down
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "3"
networks:
proxynet:
external:
name: nyumba.network

services:
nyumba:
container_name: nyumba
image: nyumba
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
volumes:
- ".:/app"
- "/app/node_modules"
ports:
- 3001:3000
environment:
- CHOKIDAR_USEPOLLING=true
networks:
- proxynet
stdin_open: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
height: 4rem;
width: 4rem;
border-radius: 50%;
align-items: center;
box-shadow: 2px -2px 2px 2px rgba(0, 0, 0, 0.1);
}

Expand Down