-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bdf109e
Showing
693 changed files
with
32,422 additions
and
0 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 @@ | ||
back/vendor |
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 @@ | ||
name: Build docker image | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Extract metadata (tags) | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.repository }} | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/firefly-pico:latest , ${{ secrets.DOCKERHUB_USERNAME }}/firefly-pico:${{ github.ref_name }} |
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,9 @@ | ||
node_modules | ||
*.log* | ||
.nuxt | ||
.nitro | ||
.cache | ||
.output | ||
.env | ||
dist | ||
.idea |
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,63 @@ | ||
ARG REGISTRY=docker.io/stsdockerhub | ||
ARG LARAVEL_ALPINE_VERSION=8.3.2-laravel-alpine3.19 | ||
|
||
FROM ${REGISTRY}/php:${LARAVEL_ALPINE_VERSION}-build as build-container | ||
|
||
WORKDIR /var/www/html | ||
|
||
COPY back . | ||
|
||
COPY back/.env.example .env | ||
|
||
|
||
#RUN composer install --no-dev \ | ||
# && php artisan key:generate \ | ||
# && tar --owner=www-data --group=www-data --exclude=.git -czf /tmp/app-back.tar.gz . | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
#RUN rm -rf vendor/ | ||
RUN composer install --no-dev | ||
RUN php artisan key:generate | ||
#RUN php artisan migrate | ||
RUN tar --owner=www-data --group=www-data --exclude=.git -czf /tmp/app-back.tar.gz . | ||
|
||
# ================================ | ||
|
||
WORKDIR /var/www/html/front | ||
|
||
COPY front . | ||
|
||
#COPY front/.env.example .env | ||
|
||
|
||
RUN npm install \ | ||
&& npm run build \ | ||
&& tar --owner=www-data --group=www-data --exclude=.git -czf /tmp/app-front.tar.gz . | ||
|
||
|
||
# ================================ | ||
|
||
FROM ${REGISTRY}/php:${LARAVEL_ALPINE_VERSION}-build | ||
|
||
WORKDIR /var/www/html | ||
|
||
COPY --from=build-container /tmp/app-back.tar.gz . | ||
|
||
RUN tar -xf app-back.tar.gz \ | ||
&& rm -rf app-back.tar.gz | ||
|
||
WORKDIR /var/www/html/front | ||
|
||
COPY --from=build-container /tmp/app-front.tar.gz . | ||
|
||
RUN tar -xf app-front.tar.gz \ | ||
&& rm -rf app-front.tar.gz | ||
|
||
|
||
COPY docker/conf/supervisor/node.ini /etc/supervisor.d | ||
COPY docker/conf/nginx/default.conf /etc/nginx/http.d | ||
|
||
|
||
# Configure entrypoint | ||
COPY docker/docker-entrypoint.d /docker-entrypoint.d/ | ||
RUN chmod +x /docker-entrypoint.d/* |
Oops, something went wrong.