Skip to content

Commit

Permalink
Merge pull request #70 from LibreCodeCoop/fix/build-nginx
Browse files Browse the repository at this point in the history
fix: build nginx
  • Loading branch information
vitormattos authored Jul 16, 2024
2 parents 7581f1b + e8f0364 commit 9c95a7d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .docker/Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx:alpine

COPY nginx/nginx.conf /etc/nginx/nginx.conf
File renamed without changes.
3 changes: 0 additions & 3 deletions .docker/web/Dockerfile

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/docker-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:
- name: Set dockerfile path
id: dockerfile
run: |
NAME="web"
DOCKERFILE=$([[ -f ".docker/$NAME/Dockerfile" ]] && echo ".docker/$NAME/Dockerfile" || echo ".docker/Dockerfile.$NAME")
DOCKERFILE=$(echo ".docker/Dockerfile.nginx")
echo "DOCKERFILE=$DOCKERFILE" >> $GITHUB_OUTPUT
- name: Build container image
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ services:
- host.docker.internal:host-gateway
nginx:
image: ghcr.io/librecodecoop/nextcloud-dev-nginx:latest
# build: .docker/web
# build: .docker/nginx
restart: unless-stopped
volumes:
- ./volumes/nextcloud:/var/www/html:ro
Expand Down

0 comments on commit 9c95a7d

Please sign in to comment.