Skip to content

Commit

Permalink
Fix docker file for client on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
renefs committed Jul 30, 2023
1 parent 67d4b88 commit 2f489e1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 314 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-build-publish.yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: . # Path to your Dockerfile and other build context files
file: docker.client.Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}-client:latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV POETRY_CACHE_DIR ${WORKDIR}/.cache
ENV VIRTUAL_ENVIRONMENT_PATH ${WORKDIR}/.venv

LABEL org.opencontainers.image.authors='[email protected]' \
org.opencontainers.image.url='https://github.com/bocabitlabs/buho-stocks/pkgs/container/buho-stocks%2Fbuho-stocks' \
org.opencontainers.image.url='https://github.com/bocabitlabs/buho-stocks/pkgs/container/buho-stocks' \
org.opencontainers.image.documentation='https://bocabitlabs.github.io/buho-stocks/' \
org.opencontainers.image.source="https://github.com/bocabitlabs/buho-stocks" \
org.opencontainers.image.vendor='Bocabitlabs (Rene Fernandez)' \
Expand Down
18 changes: 12 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ services:
restart: always
command: gunicorn buho_backend.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./volumes/logs:/app/logs
- ./volumes/static:/app/static
- ./volumes/media:/app/media
- logs:/app/logs
- static:/app/static
- media:/app/media
env_file:
- ./.env.prod
environment:
Expand Down Expand Up @@ -45,8 +45,8 @@ services:
ports:
- 8080:80
volumes:
- ./volumes/static:/app/static
- ./volumes/media:/app/media
- static:/app/static
- media:/app/media
depends_on:
- backend
db:
Expand All @@ -58,4 +58,10 @@ services:
env_file:
- ./.env.prod
volumes:
- ./volumes/mariadb_data:/var/lib/mysql
- mariadb_data:/var/lib/mysql

volumes:
mariadb_data:
static:
media:
logs:
2 changes: 1 addition & 1 deletion docker.client.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV VITE_PORT=
ENV VITE_API_URL=

LABEL org.opencontainers.image.authors='[email protected]' \
org.opencontainers.image.url='https://github.com/bocabitlabs/buho-stocks/pkgs/container/buho-stocks%2Fbuho-stocks-client' \
org.opencontainers.image.url='https://github.com/bocabitlabs/buho-stocks/pkgs/container/buho-stocks-client' \
org.opencontainers.image.documentation='https://bocabitlabs.github.io/buho-stocks/' \
org.opencontainers.image.source="https://github.com/bocabitlabs/buho-stocks" \
org.opencontainers.image.vendor='Bocabitlabs (Rene Fernandez)' \
Expand Down
306 changes: 0 additions & 306 deletions yarn.lock

This file was deleted.

0 comments on commit 2f489e1

Please sign in to comment.