Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdugad committed May 27, 2024
2 parents 26bf22c + 8d45371 commit b8d6447
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Use the official Python image as a base image
FROM python:3.8

FROM python:3.12
FROM python:alpine
# Set the working directory in the container
WORKDIR /app

# Copy the requirements file into the container at /app
COPY requirements.txt .
# COPY requirements.txt .

# Install the required packages
RUN pip install --no-cache-dir -r requirements.txt
# # Install the required packages
# RUN pip install --no-cache-dir -r requirements.txt

# Copy the current directory contents into the container at /app
COPY . .
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# CloudComputing

0 comments on commit b8d6447

Please sign in to comment.