Skip to content

Commit

Permalink
fix: issue with docker build
Browse files Browse the repository at this point in the history
fanSte8 committed Feb 15, 2022
1 parent 79e7a1d commit dcd34d6
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ jobs:
runs-on: ubuntu-latest
env:
PUBLIC_URL: __PUBLIC_URL_PLACEHOLDER__
PUBLIC_DIR_NAME: client
steps:
- name: Checkout
uses: actions/checkout@v2
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -61,14 +61,14 @@ app.listen(4000);

### Docker usage

The docker container exposes port 4000

```
docker run -p 4000:4000 \
--env CONNECTION_STRING=mongo://username:password@host/database \
--env COLLECTION=collection lexissolutions/agenda-admin:latest
```

If MongoDB is installed directly on your machine, you can run the command with `--network=host`

#### Docker environment configuration

| name | description | required | default value |
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
directory=${PUBLIC_DIR_NAME:-public}
yarn --cwd client build --prod
yarn --cwd api build
mkdir ./api/client
cp -R ./client/build/* ./api/client
mkdir ./api/$directory
cp -R ./client/build/* ./api/$directory
cp ./README.md ./api/README.md

0 comments on commit dcd34d6

Please sign in to comment.