From dc82186404a0f3449f2184cc69c2f3b65bf95d19 Mon Sep 17 00:00:00 2001 From: Shreyas Mocherla Date: Sat, 13 Jul 2024 12:24:58 +0530 Subject: [PATCH 1/2] Create docker-image.yml --- .github/workflows/docker-image.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..dbdb527 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,33 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - dev + pull_request: + branches: + - dev + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: shreym/insightful:latest From 3e747feaa790f9c9ebd336254ea1738930019267 Mon Sep 17 00:00:00 2001 From: Shreyas Mocherla Date: Sat, 13 Jul 2024 12:36:08 +0530 Subject: [PATCH 2/2] Created Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0d7bd5b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY . /app + +RUN pip install --no-cache-dir -r requirements.txt + +EXPOSE 8051 + +CMD ["streamlit", "run", "InSightful.py"] \ No newline at end of file