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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN wget -qO node.tar.xz https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x64.
RUN tar -xf node.tar.xz
ENV PATH="/node-v8.12.0-linux-x64/bin:${PATH}"

Add . /code
ADD . /code
WORKDIR /code

RUN pip install -r requirements.txt
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:

endpoint-service:
build: .
platform: "linux/x86_64"
volumes:
- .:/code
ports:
Expand Down
10 changes: 9 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@ $ python main.py
```

You can also run the application using docker. Make sure docker and docker-compose is installed in your system
```

```console
$ docker-compose up
# the app will be running at localhost:8080
```

On Apple Silicon, run the following with platform-specific build

```console
$ docker build --platform=linux/x86_64 .
[+] Building 170.5s (14/14) FINISHED
...
```

## License

Expand Down