Skip to content

Commit a1b319b

Browse files
authored
Merge pull request nadavspi#164 from nadavspi/docker
Add docker & docker-compose
2 parents 9668d24 + 24c283b commit a1b319b

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ build
1313
.DS_Store
1414
.idea/*
1515
.env
16-
docker-compose.yml
1716
npm-debug.log

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:12-alpine
2+
LABEL maintainer="Nadav Spiegelman <[email protected]>"
3+
4+
RUN mkdir /app
5+
WORKDIR /app
6+
7+
COPY . .
8+
9+
RUN yarn install
10+
11+
EXPOSE 3000
12+
13+
ENTRYPOINT yarn start

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ A web app to help do things with ConnectWise.
1212

1313
Assumes repo is cloned and docker daemon is running.
1414

15-
1. Duplicate `docker-compose.yml.sample` to `docker-compose.yml`
16-
1. Replace environment variables prefixed with `REACT_APP`
15+
0. Create your .env file as described above.
1716
1. `docker-compose up`

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3'
2+
services:
3+
node:
4+
image: nadavspi/unwiseconnect
5+
volumes:
6+
- ".:/app"
7+
ports:
8+
- 3000:3000
9+
env_file:
10+
- .env
11+
command: ["yarn", "start"]

docker-compose.yml.example

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)