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

22 lines
460 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
# COPY CONFIGURATION FILES
ADD ./etc /etc
ADD ./usr /usr
# CLEAN APK CACHES
RUN rm -vrf /var/cache/apk/*
EXPOSE 80