Skip to content

Commit d10de82

Browse files
committed
Tidy up #168, #170
- Drop armv6 in README - Remove unnecessary rsync step - Remove some comments
1 parent 859bda3 commit d10de82

File tree

7 files changed

+4
-20
lines changed

7 files changed

+4
-20
lines changed

.github/workflows/build_push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
context: .
4040
file: ./Dockerfile
4141
platforms: linux/amd64,linux/arm/v7,linux/arm64
42-
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
4342
push: true
4443
tags: |
4544
lycheeorg/lychee:testing-${{ github.run_id }}

.github/workflows/cron.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
context: .
3737
file: ./Dockerfile
3838
platforms: linux/amd64,linux/arm/v7,linux/arm64
39-
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
4039
push: true
4140
tags: |
4241
lycheeorg/lychee:testing-${{ github.run_id }}
@@ -66,7 +65,6 @@ jobs:
6665
context: .
6766
file: ./Dockerfile
6867
platforms: linux/amd64,linux/arm/v7,linux/arm64
69-
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
7068
push: true
7169
build-args: |
7270
COMPOSER_NO_DEV=0

.github/workflows/pull.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
context: .
3131
file: ./Dockerfile
3232
platforms: linux/amd64,linux/arm/v7,linux/arm64
33-
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
3433
load: false
3534
push: false
3635
tags: |

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
context: .
4040
file: ./Dockerfile
4141
platforms: linux/amd64,linux/arm/v7,linux/arm64
42-
# platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
4342
push: true
4443
build-args: |
4544
TARGET=release

Dockerfile

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ RUN \
4545
gifsicle \
4646
webp \
4747
cron \
48-
rsync \
4948
composer \
5049
unzip && \
5150
addgroup --gid "$PGID" "$USER" && \
@@ -77,7 +76,7 @@ RUN \
7776

7877
# Multi-stage build: Build static assets
7978
# This allows us to not include Node within the final container
80-
FROM node:20 as node_modules_go_brrr
79+
FROM node:20 as static_builder
8180

8281
RUN mkdir /app
8382

@@ -89,18 +88,9 @@ RUN \
8988
npm ci --no-audit && \
9089
npm run build
9190

92-
# From our base container created above, we
93-
# create our final image, adding in static
94-
# assets that we generated above
91+
# Get the static assets built in the previous step
9592
FROM base
96-
97-
# Packages like Laravel Nova may have added assets to the public directory
98-
# or maybe some custom assets were added manually! Either way, we merge
99-
# in the assets we generated above rather than overwrite them
100-
COPY --from=node_modules_go_brrr --chown=www-data:www-data /app/public /var/www/html/Lychee/public-npm
101-
RUN rsync -ar /var/www/html/Lychee/public-npm/ /var/www/html/Lychee/public/ \
102-
&& rm -rf /var/www/html/Lychee/public-npm \
103-
&& chown -R www-data:www-data /var/www/html/Lychee/public
93+
COPY --from=static_builder --chown=www-data:www-data /app/public /var/www/html/Lychee/public
10494

10595
# Add custom Nginx configuration
10696
COPY default.conf /etc/nginx/nginx.conf

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<br>
77
![Supports amd64 Architecture][amd64-shield]
88
![Supports arm64/aarch64 Architecture][arm64-shield]
9-
![Supports armv6 Architecture][armv6-shield]
109
![Supports armv7 Architecture][armv7-shield]
1110

1211
## Notice: Dockerhub repository has been migrated to [lycheeorg/lychee](https://hub.docker.com/r/lycheeorg/lychee)
@@ -143,7 +142,6 @@ If you need to add (not change) nginx directives, files mounted in `/etc/nginx/c
143142

144143
[arm64-shield]: https://img.shields.io/badge/arm64-yes-success.svg?style=flat
145144
[amd64-shield]: https://img.shields.io/badge/amd64-yes-success.svg?style=flat
146-
[armv6-shield]: https://img.shields.io/badge/armv6-yes-success.svg?style=flat
147145
[armv7-shield]: https://img.shields.io/badge/armv7-yes-success.svg?style=flat
148146
[build-status-shield]: https://img.shields.io/github/actions/workflow/status/LycheeOrg/Lychee-Docker/cron.yml?label=%3Adev%20build
149147
[docker-pulls-shield-old]: https://img.shields.io/docker/pulls/lycheeorg/lychee-laravel.svg?style=flat&label=Docker%20Pulls%20(lychee-laravel)

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ echo '
1717
| |__| |_| | (__| | | | __/ __/
1818
|_____\__, |\___|_| |_|\___|\___|
1919
|___/
20+
2021
-------------------------------------
2122
Lychee Version: '$lycheeversion' ('$target')
2223
Lychee Commit: '$shorthash'

0 commit comments

Comments
 (0)