Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build Docker image | |
run: docker build -t vulnerablelightapp . | |
- name: Run Docker container | |
run: docker run -d -p 3000:3000 vulnerablelightapp | |
- name: Wait for the container to be ready | |
run: sleep 30 | |
- name: Test the application | |
run: curl -k https://127.0.0.1:3000 |