diff --git a/coolify.Dockerfile b/coolify.Dockerfile index 7fff09b7..29b2bed2 100644 --- a/coolify.Dockerfile +++ b/coolify.Dockerfile @@ -1,14 +1,14 @@ ARG NODE_VERSION=20.9.0 +ARG PHP_VERSION=8.3.11 FROM node:${NODE_VERSION}-alpine as static-assets RUN apk add --no-cache gcompat -WORKDIR /app +WORKDIR /var/www -COPY . /app +COPY . /var/www RUN yarn install --frozen-lockfile && yarn && yarn build && npm prune --production -ARG PHP_VERSION=8.3.11 FROM php:${PHP_VERSION}-fpm as server ARG user @@ -55,11 +55,11 @@ USER $user RUN composer install --ignore-platform-reqs --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist -COPY --from=static-assets --chown=9999:9999 /app/public/build ./public/build +COPY --from=static-assets --chown=9999:9999 /var/www/public/build ./public/build # RUN php artisan route:cache # RUN php artisan view:cache RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc RUN echo "alias a='php artisan'" >>/etc/bash.bashrc -RUN echo "alias logs='tail -f storage/logs/laravel.log'" >>/etc/bash.bashrc \ No newline at end of file +RUN echo "alias logs='tail -f storage/logs/laravel.log'" >>/etc/bash.bashrc diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index 17062a7a..c0e49103 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -1,7 +1,7 @@ services: nginx: image: nginx:alpine - container_name: neatlancer-nginx + container_name: loger-nginx restart: unless-stopped ports: - 8088:80 @@ -14,8 +14,6 @@ services: - VIRTUAL_HOST=${VIRTUAL_APP_HOST} - LETSENCRYPT_HOST=${VIRTUAL_APP_HOST} - LETSENCRYPT_EMAIL=jesusant.guerrero@gmail.com - networks: - - neatlancer web: build: args: