Trigger redeploy
Some checks failed
Auto Deploy Flask with Docker / deploy (push) Failing after 1s

This commit is contained in:
annous246 2025-08-08 13:44:58 +01:00
parent 125d31cfa6
commit f32eb032b3
3 changed files with 7 additions and 13 deletions

View File

@ -9,22 +9,16 @@ jobs:
deploy:
runs-on: self-hosted
container:
image: node:18
options: --privileged
image: anas/node18-docker:latest # Replace with your image
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Install Docker CLI
run: |
apt-get update
apt-get install -y docker.io
docker --version
#- name: Install Docker CLI
# run: |
# apt-get update && apt-get install -y docker.io
- name: Check docker version
run: docker version
- name: Verify Docker CLI
run: docker --version
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build Docker image
run: docker build -t flask-app .

View File

@ -11,4 +11,4 @@ ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
EXPOSE 5000
CMD ["flask", "run"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]

Binary file not shown.