mirror of
https://github.com/notf0und/SGS
synced 2026-07-17 18:21:06 +00:00
Initial commit / First Release
This commit is contained in:
parent
2e8f5ce028
commit
2579f561c3
+22
@@ -0,0 +1,22 @@
|
||||
FROM linuxserver/nginx:latest
|
||||
|
||||
# Install npm
|
||||
RUN apk add --no-cache nodejs npm
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app/www
|
||||
|
||||
# Copy application files
|
||||
COPY ./www .
|
||||
|
||||
# Remove vendor and node_modules if they exist (to ensure clean install)
|
||||
RUN rm -rf vendor node_modules
|
||||
|
||||
# Install composer dependencies during build
|
||||
RUN composer install --no-interaction --optimize-autoloader --no-dev
|
||||
|
||||
# Install npm dependencies and build during build
|
||||
RUN npm install && npm run build
|
||||
|
||||
# Create storage link during build
|
||||
RUN php artisan storage:link
|
||||
Reference in New Issue
Block a user