Skip to content

Commit

Permalink
Merge pull request openclimatefix#20 from siddharth7113/docker-deploy…
Browse files Browse the repository at this point in the history
…ment

Add Dockerfile and CI workflow for Docker build
  • Loading branch information
peterdudfield authored Dec 7, 2024
2 parents f4059c3 + e3ec203 commit 1b8bdb6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Docker Build

on: push

jobs:
DockerBuild:
name: Build docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build
run: docker build .
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.12-slim

WORKDIR /app

COPY pyproject.toml /app

RUN pip install --no-cache-dir .

COPY . /app

# Set the entry point for the container
CMD ["python", "-m", "neso_solar_consumer.app"]
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ build-backend = "setuptools.build_meta"
name = "neso_solar_consumer"
version = "0.1"
dependencies = [
"pandas",
"pandas"
]

[project.optional-dependencies]
dev = [
"pytest"
"pytest","black","ruff"
]

0 comments on commit 1b8bdb6

Please sign in to comment.