nginx,php

This commit is contained in:
Shihaam Abdul Rahman 2022-10-07 15:51:20 +05:00
parent 5b5c3d1d97
commit d09c313cda
Signed by: shihaam
GPG Key ID: 1D33DF08702F2A9C
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,41 @@
FROM debian:11-slim
WORKDIR /root
ARG NEXTCLOUD_VESION=1
ARG PHPVERSION=8.1
#Initial update packges
RUN apt update && apt upgrade
# Language setup
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN apt install locales -y \
&& apt auto-remove -y \
&& apt clean -y
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
# Installing basic tools
RUN apt install zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
#Adding Repo and installing PHP
RUN apt update \
&& wget https://packages.sury.org/php/apt.gpg \
&& apt-key add apt.gpg \
&& rm apt.gpg \
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php7.list
RUN apt update \
&& bash -c 'apt install -y php${PHPVERSION} php${PHPVERSION}-{fpm,cli,bcmath,bz2,intl,gd,mbstring,mysql,zip,common,dom,curl} --no-install-recommends'
# Installing nginx
RUN apt update -y \
&& apt install nginx -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
CMD ["bash"]

View File

@ -0,0 +1,8 @@
version: '3.5'
services:
#########################
app:
build: .
image: git.shihaam.me/dockerfiles/nextcloud
ports:
- 8000:80