Skip to content

Commit

Permalink
Merge pull request #22 from clemenstyp/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
clemenstyp committed Mar 22, 2024
2 parents 695d9b7 + 880eeaa commit 8a3f999
Show file tree
Hide file tree
Showing 60 changed files with 2,561 additions and 3,832 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
Dockerfile
**/node_modules
**/npm-debug.log
**/obj
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['master']
branches: [ 'master' ]

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ CoffeeDB.db
!/static/images/.gitkeep
/static/icons/
!/static/icons/.gitkeep
/data/
docker-compose.override.yaml
/data/CoffeeDB.db
docker-compose.override.yaml
.pylintrc
setup.cfg
qodana.yaml
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[FORMAT]
max-line-length=240
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy the source code into the container.
COPY . .
COPY .. .

# Expose the port that the application listens on.
EXPOSE 5000

# Run the application.
ENTRYPOINT ["python" ,"-u", "/app/SnackBar.py"]
CMD ["gunicorn", "--config","/app/gunicorn_config.py", "--bind", "0.0.0.0:5000", "Snackbar_app:app"]

0 comments on commit 8a3f999

Please sign in to comment.