Skip to content

Commit

Permalink
add dockerfile (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
fey authored Sep 30, 2024
1 parent 80c1a1a commit 2dfa0f1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,26 @@ jobs:
# make sure we didn't delete the current version
- name: cURL Test
run: curl "${{ steps.deploy.outputs.url }}"
docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
cache-from: ghcr.io/${{ github.repository }}:latest
cache-to: type=inline
tags: ghcr.io/${{ github.repository }}:latest
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.10-slim

WORKDIR /app

COPY . .

RUN pip install -r requirements.txt


CMD ["python", "-m", "app.wsgi"]

0 comments on commit 2dfa0f1

Please sign in to comment.