This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
php-fpm-nginx/Dockerfile.alpine

26 lines
604 B
Docker

ARG REGISTRY_URL=git.winteraccess.id/docker
ARG PHP_VERSION=8.3
FROM ${REGISTRY_URL}/php-fpm:${PHP_VERSION}-alpine
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
# Set workdir
WORKDIR /usr/www
# INSTALL BASE DEPENDENCIES
RUN --mount=type=cache,target=/var/cache/apk \
apk upgrade && apk add --update \
nginx openssl
# REMOVE CURRENT NGINX CONFIGURATIONS
RUN rm -f /etc/nginx/conf.d/*
# COPY CONFIGURATION FILES
ADD ./etc/nginx/nginx.conf /etc/nginx/nginx.conf
ADD ./etc/nginx/conf.d /etc/nginx/conf.d
ADD ./usr /usr
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*
EXPOSE 80