Skip to content

Commit

Permalink
Merge branch 'main' of github.com:TeachMeTW/CNN
Browse files Browse the repository at this point in the history
  • Loading branch information
TeachMeTW committed Oct 8, 2024
2 parents 7b7fb27 + 98daa39 commit 6eea072
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and Push Docker Image

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and Push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: robinttw/streamlit:latest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CNN

Setup Instructions
Local Setup Instructions

1. Download Docker

Expand All @@ -10,10 +10,10 @@ Setup Instructions

- In your project directory, run the following command to build the Docker image:

docker build -t streamlit .
`docker build -t streamlit .`

3. Run the Docker Container

- To run the container and expose it on port 8501, use the following command:

docker run -p 8501:8501 streamlit
`docker run -p 8501:8501 streamlit`

0 comments on commit 6eea072

Please sign in to comment.