Skip to content

Instantly share code, notes, and snippets.

View peeush-agarwal's full-sized avatar

Peeush Agarwal peeush-agarwal

View GitHub Profile
@peeush-agarwal
peeush-agarwal / Dockerfile
Last active February 27, 2022 04:23
Dockerfile for building a container
# We need to add arm64v8 architecture type to run it on RaspberryPi or other ARM based devices
FROM arm64v8/python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
@peeush-agarwal
peeush-agarwal / main.yml
Last active November 30, 2022 20:53
GitHub Action workflow for CI/CD pipeline with Flask application
# This is a basic workflow to help you get started with Actions
name: Deploy to Raspberry Pi
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]