2023-04-12 19:23:32 +00:00
FROM serversideup/php:8.2-fpm-nginx
2023-06-15 11:41:25 +00:00
2023-04-12 19:23:32 +00:00
ARG POSTGRES_VERSION = 15
2023-06-15 11:41:25 +00:00
RUN apt-get update
# Postgres version requirements
RUN apt install dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https curl -y
RUN curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /usr/share/keyrings/postgresql.gpg > /dev/null
2023-06-15 11:42:04 +00:00
RUN echo deb [ arch = amd64,arm64,ppc64el signed-by= /usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ jammy-pgdg main | tee -a /etc/apt/sources.list.d/postgresql.list
2023-06-15 11:41:25 +00:00
RUN apt-get update
RUN apt-get install postgresql-client-$POSTGRES_VERSION -y
# Coolify requirements
RUN apt-get install -y php-pgsql openssh-client git git-lfs jq
2023-05-16 08:12:34 +00:00
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
2023-04-12 19:23:32 +00:00
2023-05-26 08:37:18 +00:00
COPY docker/dev-ssu/nginx.conf /etc/nginx/conf.d/custom.conf
2023-05-16 08:07:08 +00:00
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc
RUN echo "alias cda='composer dump-autoload'" >>/etc/bash.bashrc
RUN echo "alias run='./scripts/run'" >>/etc/bash.bashrc
2023-05-12 18:15:36 +00:00
2023-04-14 06:53:37 +00:00
# COPY --chmod=755 docker/dev-ssu/etc/s6-overlay/ /etc/s6-overlay/