Skip to content

Commit

Permalink
Merge pull request nadavspi#164 from nadavspi/docker
Browse files Browse the repository at this point in the history
Add docker & docker-compose
  • Loading branch information
nadavspi authored Mar 11, 2020
2 parents 9668d24 + 24c283b commit a1b319b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ build
.DS_Store
.idea/*
.env
docker-compose.yml
npm-debug.log
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:12-alpine
LABEL maintainer="Nadav Spiegelman <[email protected]>"

RUN mkdir /app
WORKDIR /app

COPY . .

RUN yarn install

EXPOSE 3000

ENTRYPOINT yarn start
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ A web app to help do things with ConnectWise.

Assumes repo is cloned and docker daemon is running.

1. Duplicate `docker-compose.yml.sample` to `docker-compose.yml`
1. Replace environment variables prefixed with `REACT_APP`
0. Create your .env file as described above.
1. `docker-compose up`
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
node:
image: nadavspi/unwiseconnect
volumes:
- ".:/app"
ports:
- 3000:3000
env_file:
- .env
command: ["yarn", "start"]
22 changes: 0 additions & 22 deletions docker-compose.yml.example

This file was deleted.

0 comments on commit a1b319b

Please sign in to comment.