Dockerfile para ejecutar el proyecto
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -4,6 +4,7 @@ dump-todo-rico.sql
|
||||
|
||||
# Archivos de backup de visual paradigm
|
||||
*.vpp.bak_*
|
||||
*.vpp.vbak*
|
||||
*.vpp.lck
|
||||
|
||||
#PHPStorm y WebStorm
|
||||
@@ -23,4 +24,4 @@ dump-todo-rico.sql
|
||||
.idea/httpRequests
|
||||
.idea/$CACHE_FILE$
|
||||
.idea/**/sonarIssues.xml
|
||||
.idea/**/sonarlint/
|
||||
.idea/**/sonarlint/
|
||||
|
||||
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@@ -3,4 +3,5 @@
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
.env
|
||||
.env.production
|
||||
.phpunit.result.cache
|
||||
|
||||
31
backend/Dockerfile
Normal file
31
backend/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM alpine:3
|
||||
|
||||
RUN apk update
|
||||
RUN apk --no-cache add php8 php8-openssl php8-pdo php8-pdo_mysql \
|
||||
php8-pdo_sqlite php8-pdo_pgsql php8-mbstring \
|
||||
php8-phar php8-curl php8-dom php8-xml \
|
||||
php8-xmlwriter php8-tokenizer \
|
||||
zip unzip curl sqlite
|
||||
|
||||
RUN ln -s /usr/bin/php8 /usr/bin/php
|
||||
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
|
||||
|
||||
WORKDIR /lumen
|
||||
|
||||
COPY composer.json .
|
||||
COPY composer.lock .
|
||||
|
||||
RUN composer install --no-ansi --no-dev --no-interaction --no-plugins \
|
||||
--no-progress --no-scripts --optimize-autoloader
|
||||
|
||||
COPY app ./app
|
||||
COPY artisan ./artisan
|
||||
COPY bootstrap ./bootstrap
|
||||
COPY config ./config
|
||||
COPY public ./public
|
||||
COPY resources ./resources
|
||||
COPY routes ./routes
|
||||
COPY storage ./storage
|
||||
COPY .env.production .env
|
||||
|
||||
ENTRYPOINT ["php", "-S", "0.0.0.0:8080", "-t", "public"]
|
||||
Binary file not shown.
Reference in New Issue
Block a user