Skip to content

Commit

Permalink
testing more docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Script Tactics committed Dec 10, 2023
1 parent 989578c commit 156ecdc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ FROM python:alpine3.19

WORKDIR /app

COPY requirements.txt .

RUN pip install -r requirements.txt

COPY . .

EXPOSE 5000
ENV PORT 5000

CMD python stk_sweep.py
RUN pip install -r requirements.txt
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ Before proceeding, ensure you have the following installed on your system:
```
Note: this currently starts the Flask development server.

## Docker

TODO: Setup USB passthrough to access SDR devices

Current draft Dockerfile and docker-compose.yml files have been added to the repo.

To build and run application run the following command
```bash
docker compose run --publish 5000:5000 stk_sweep
```

## Usage

After completing the setup, the Flask application will be running on your local server. You can access it via `localhost:5000/rtl_data`.
Expand Down
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.9'

services:
stk_sweep:
image: sweep
ports:
- "5000:5000"
entrypoint:
- python
- stk_sweep.py
- --host=0.0.0.0

0 comments on commit 156ecdc

Please sign in to comment.