-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove Ansible and all Python packages * Reduce image size by 452 MB (689 MB => 237 MB uncompressed)
- Loading branch information
Showing
7 changed files
with
132 additions
and
265 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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM golang:alpine3.16 as builder | ||
|
||
# envsubst from gettext can not replace env vars with default values | ||
# this package is not available for ARM32 and we have to build it from source code | ||
RUN go install -v github.com/a8m/envsubst/cmd/[email protected] | ||
|
||
FROM alpine:3.16 | ||
|
||
LABEL maintainer "Marvin Steadfast <[email protected]>" | ||
COPY --from=builder /go/bin/envsubst /usr/bin/envsubst | ||
|
||
ARG WALLABAG_VERSION=2.5.2 | ||
|
||
RUN set -ex \ | ||
&& apk update \ | ||
&& apk upgrade --available \ | ||
&& apk add \ | ||
ansible \ | ||
&& apk add --no-cache \ | ||
curl \ | ||
libwebp \ | ||
mariadb-client \ | ||
nginx \ | ||
pcre \ | ||
php8 \ | ||
|
@@ -40,9 +42,8 @@ RUN set -ex \ | |
php8-xmlreader \ | ||
php8-tidy \ | ||
php8-intl \ | ||
py3-mysqlclient \ | ||
py3-psycopg2 \ | ||
py-simplejson \ | ||
mariadb-client \ | ||
postgresql14-client \ | ||
rabbitmq-c \ | ||
s6 \ | ||
tar \ | ||
|
@@ -59,13 +60,14 @@ RUN set -ex \ | |
COPY root / | ||
|
||
RUN set -ex \ | ||
&& mv /var/www/wallabag/app /tmp/app \ | ||
&& curl -L -o /tmp/wallabag.tar.gz https://github.com/wallabag/wallabag/archive/$WALLABAG_VERSION.tar.gz \ | ||
&& tar xvf /tmp/wallabag.tar.gz -C /tmp \ | ||
&& mkdir /var/www/wallabag \ | ||
&& mv /tmp/wallabag-*/* /var/www/wallabag/ \ | ||
&& rm -rf /tmp/wallabag* \ | ||
&& mv /tmp/app/config/parameters.yml /var/www/wallabag/app/config/parameters.yml \ | ||
&& mv /etc/wallabag/* /var/www/wallabag/app/config/ \ | ||
&& cd /var/www/wallabag \ | ||
&& mkdir data/assets \ | ||
&& SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist --no-progress \ | ||
&& rm -rf /root/.composer/* /var/www/wallabag/var/cache/* /var/www/wallabag/var/logs/* /var/www/wallabag/var/sessions/* \ | ||
&& chown -R nobody:nobody /var/www/wallabag | ||
|
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.