Add application file
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -12,7 +12,6 @@ RUN apt-get update && apt-get install -y \
|
|
12 |
libzip-dev \
|
13 |
libonig-dev \
|
14 |
libxml2-dev \
|
15 |
-
libmcrypt-dev \
|
16 |
libcurl4-openssl-dev \
|
17 |
libicu-dev \
|
18 |
unzip \
|
@@ -32,12 +31,14 @@ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
32 |
# Set the working directory
|
33 |
WORKDIR /var/www
|
34 |
|
35 |
-
# Copy
|
36 |
COPY . /var/www
|
37 |
|
|
|
|
|
38 |
|
39 |
-
#
|
40 |
-
|
41 |
|
42 |
# Generate application key
|
43 |
RUN php artisan key:generate
|
@@ -49,8 +50,8 @@ RUN php artisan db:seed
|
|
49 |
RUN php artisan vendor:publish --all
|
50 |
RUN php artisan storage:link
|
51 |
|
52 |
-
# Expose port
|
53 |
-
EXPOSE
|
54 |
|
55 |
# Start the PHP-FPM server
|
56 |
CMD ["php-fpm"]
|
|
|
12 |
libzip-dev \
|
13 |
libonig-dev \
|
14 |
libxml2-dev \
|
|
|
15 |
libcurl4-openssl-dev \
|
16 |
libicu-dev \
|
17 |
unzip \
|
|
|
31 |
# Set the working directory
|
32 |
WORKDIR /var/www
|
33 |
|
34 |
+
# Copy application files
|
35 |
COPY . /var/www
|
36 |
|
37 |
+
# Ensure .env.example exists and create .env if missing
|
38 |
+
RUN if [ -f .env.example ]; then cp .env.example .env; else echo ".env.example file not found"; exit 1; fi
|
39 |
|
40 |
+
# Install Bagisto dependencies
|
41 |
+
RUN composer install
|
42 |
|
43 |
# Generate application key
|
44 |
RUN php artisan key:generate
|
|
|
50 |
RUN php artisan vendor:publish --all
|
51 |
RUN php artisan storage:link
|
52 |
|
53 |
+
# Expose port 7860
|
54 |
+
EXPOSE 7860
|
55 |
|
56 |
# Start the PHP-FPM server
|
57 |
CMD ["php-fpm"]
|