-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG PHP_VERSION=8.4
FROM php:${PHP_VERSION}-fpm-alpine
LABEL org.opencontainers.image.url="https://laravel.com" \
org.opencontainers.image.documentation="https://github.com/generationtux/jwt-artisan/blob/master/README.md" \
org.opencontainers.image.source="https://github.com/generationtux/jwt-artisan/Dockerfile" \
org.opencontainers.image.vendor="Generation Tux <engineering@generationtux.com>" \
org.opencontainers.image.title="jwt-artisan" \
org.opencontainers.image.description="JWT auth package for Laravel and Lumen"
USER root
RUN apk --no-cache --update add bash ca-certificates curl git unzip wget zip linux-headers \
&& apk add --no-cache --virtual build-dependencies autoconf build-base g++ make \
&& docker-php-ext-install bcmath opcache \
&& docker-php-ext-enable bcmath opcache \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& chown www-data:www-data /usr/local/bin/composer \
&& apk del --purge autoconf build-dependencies g++ make \
&& chown -R www-data:www-data /var/www
WORKDIR /var/www
USER www-data:www-data