Skip to content

Commit

Permalink
Update README.md with instructions for Docker on EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
marythedev authored Oct 14, 2023
1 parent 5770607 commit b9de63e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@ Docker
- for example, `docker run --rm --name fragments --env-file env.jest -e LOG_LEVEL=debug -p 8080:8080 -d fragments:latest`
- run `docker logs -f <detached container id>` (`-f` flag is for following the logs, can be run without it)

### Docker on EC2
1. Install Docker `sudo yum install -y docker` (might need to reload the ssh session `exit`)
2. Start Docker `sudo dockerd`
3. Pack, transfer & unpack codebase (refer to commands in the sections above)
4. Run `npm install` (will generate package-lock.json)
5. Build image `sudo docker build -t fragments:latest .`
6. Run other commands needed to run docker container (add `sudo` for root rights)

0 comments on commit b9de63e

Please sign in to comment.