forked from pablouser1/ProxiTok
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (20 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
21 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:8.1-fpm-alpine
WORKDIR /var/www/html
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN adduser -D proxitok
RUN apk update && apk upgrade --available \
&& apk add git libzip-dev autoconf build-base \
&& pecl install redis zip \
&& docker-php-ext-enable redis zip \
&& mkdir /cache \
&& chown -R proxitok:proxitok /cache \
&& rm -rf /var/www/html/* \
&& git clone --depth=1 https://github.com/unstablemaple/ProxiTok.git . \
&& composer update \
&& composer install --no-interaction --optimize-autoloader --no-dev \
&& chown -R proxitok:proxitok /var/www/html \
&& chmod -R 777 /var/www/html/ \
&& apk cache clean \
&& rm -rf /var/lib/apk/lists/* \
&& rm -rf /usr/bin/composer
EXPOSE 9000