Skip to content

Commit

Permalink
fixed docker integration
Browse files Browse the repository at this point in the history
  • Loading branch information
PWRxPSYCHO committed Jan 4, 2024
1 parent e288fc0 commit c5c930c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:alpine3.19
FROM tiangolo/uwsgi-nginx-flask:python3.11-2024-01-01

WORKDIR /app

COPY . .

RUN python -m pip install -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ Additionally, the Docker image is built with GitHub actions on the main branch.
If you open up the docker-compose.yml and modify this line:

```yml
image: sweep
image: raven
```
to be
```yml
image: ghcr.io/fosatech/stk-sweep:latest
image: ghcr.io/fosatech/raven:latest
```
Then run `docker compose run --publish 5000:5000 stk_sweep` to start the container
Then run `docker compose run --publish 5000:5000 raven` to start the container

This bash script will build the docker image from the Docker file and then run the container from the docker compose file.

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3.9'

services:
stk_sweep:
image: sweep
raven:
image: raven
ports:
- "5000:5000"
entrypoint:
- python
- stk_sweep.py
- raven.py
- --host=0.0.0.0
4 changes: 2 additions & 2 deletions startContainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x

echo "Building Docker container..."

docker build -t sweep .
docker build -t raven .

echo "Starting Docker container..."
docker compose run --publish 5000:5000 stk_sweep
docker compose run --publish 5000:5000 raven

0 comments on commit c5c930c

Please sign in to comment.