oskarb-patch-1 (#1)
Some checks failed
Deploy App / build-and-deploy (push) Failing after 12s
Some checks failed
Deploy App / build-and-deploy (push) Failing after 12s
Reviewed-on: #1
This commit is contained in:
@@ -62,4 +62,9 @@ COPY --from=frontend /app/public ./public
|
||||
# Fix permissions for Laravel
|
||||
RUN chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
FROM nginx:1.27-alpine AS nginx
|
||||
WORKDIR /var/www/html
|
||||
COPY --from=final /var/www/html/public ./public
|
||||
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
CMD ["php-fpm"]
|
||||
|
||||
@@ -9,10 +9,9 @@ services:
|
||||
- laravel
|
||||
|
||||
nginx:
|
||||
image: nginx:1.27
|
||||
volumes:
|
||||
- ../nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./public:/var/www/html/public:ro
|
||||
build:
|
||||
context: .
|
||||
target: nginx
|
||||
ports:
|
||||
- '${APP_PORT:-80}:80'
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user