Skip to content

Commit

Permalink
master - update
Browse files Browse the repository at this point in the history
  • Loading branch information
ionghitun committed Nov 24, 2024
1 parent 37858d3 commit d09bcbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
services:
projects:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
user: ${USER_ID}:${GROUP_ID}
restart: unless-stopped
build:
context: ./
dockerfile: docker/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#version
ARG PHP_BASE_IMAGE
ARG PHP_BASE_IMAGE=php:8.3-fpm
FROM ${PHP_BASE_IMAGE}

#configure everything as root
USER root

#make owner www-data and match it to host and group ids so permissions match outside container
ARG USER_ID
ARG GROUP_ID
ARG USER_ID=1000
ARG GROUP_ID=1000
RUN userdel -f www-data
RUN if getent group www-data ; then groupdel www-data; fi
RUN groupadd -g ${GROUP_ID} www-data
Expand Down Expand Up @@ -38,7 +38,7 @@ RUN export EDITOR="/usr/bin/nano"
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

#install node
ARG NODE_VERSION
ARG NODE_VERSION=22
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
RUN chmod 500 nsolid_setup_deb.sh
RUN ./nsolid_setup_deb.sh ${NODE_VERSION}
Expand Down

0 comments on commit d09bcbb

Please sign in to comment.