-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
103 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM php:8.1-alpine | ||
|
||
# Optional, force UTC as server time | ||
RUN echo "UTC" > /etc/timezone | ||
|
||
RUN apk add --no-cache git curl sqlite curl-dev | ||
RUN docker-php-ext-configure curl && docker-php-ext-install curl | ||
RUN docker-php-ext-install opcache && docker-php-ext-enable opcache | ||
RUN docker-php-ext-install pcntl | ||
RUN apk add --no-cache libzip-dev && docker-php-ext-configure zip && docker-php-ext-install zip | ||
|
||
RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} | ||
RUN pecl install xhprof | ||
|
||
RUN docker-php-ext-enable xhprof | ||
|
||
ARG CACHEBUST=1 | ||
|
||
# Install Composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
WORKDIR /app | ||
|
||
ARG CACHEBUST=2 | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
RUN git clone https://github.com/buggregator/examples.git /app | ||
RUN composer install | ||
|
||
RUN chmod 0777 storage -R | ||
RUN chmod 0777 bootstrap -R | ||
|
||
EXPOSE 8000 | ||
|
||
CMD php artisan serve --host=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
patreon: butschster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
build-release: | ||
if: "!github.event.release.prerelease" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: 'Get Previous tag' | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
with: | ||
fallback: v0.1 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ secrets.GHCR_LOGIN }} | ||
password: ${{ secrets.GHCR_PASSWORD }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: ./ | ||
platforms: linux/amd64 | ||
file: ./.docker/Dockerfile | ||
push: true | ||
build-args: | | ||
APP_VERSION=${{ steps.previoustag.outputs.tag }} | ||
tags: | ||
ghcr.io/${{ github.repository }}:latest, ghcr.io/${{ github.repository }}:${{ steps.previoustag.outputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
} | ||
|
||
.device-desktop, .device-desktop > div { | ||
border-radius: .375rem; | ||
width: 100% | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters