From 6c06284f6e9bd0f153dbfc32fa8e8bf249739d1f Mon Sep 17 00:00:00 2001 From: Dillon Lareau Date: Fri, 1 Jan 2021 14:23:18 -0500 Subject: [PATCH 1/2] Added initial dockerfile --- .github/workflows/docker-image.yml | 21 +++++++++++++++++++++ Dockerfile | 9 +++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/docker-image.yml create mode 100644 Dockerfile diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..2139577 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + if: github.repository == 'Sakimori/matteo-the-prestige' + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Push to Docker Hub + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: blaseballsibr/matteo-the-prestige + tags: latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2f0de7d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.8 +EXPOSE 5000 + +WORKDIR /app + +COPY . ./ +RUN pip install -r requirements.txt + +CMD ["python", "the_presige.py"] From d369639fd2c028eaee235e6114058e7cd20f81f6 Mon Sep 17 00:00:00 2001 From: Dillon Lareau Date: Fri, 1 Jan 2021 14:24:34 -0500 Subject: [PATCH 2/2] typo --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2f0de7d..75d8a22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ WORKDIR /app COPY . ./ RUN pip install -r requirements.txt -CMD ["python", "the_presige.py"] +CMD ["python", "the_prestige.py"]