Skip to content

Commit 64e67a0

Browse files
authored
Merge pull request #68 from fey/add-render-deploy
add render deploy
2 parents e546015 + 7171ff0 commit 64e67a0

File tree

8 files changed

+1264
-947
lines changed

8 files changed

+1264
-947
lines changed

.github/workflows/phpci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php-versions: ['8.1']
17+
php-versions: ['8.2']
1818

1919
steps:
2020
- uses: actions/checkout@v2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-cli
1+
FROM php:8.2-cli
22

33
RUN apt-get update && apt-get install -y \
44
libpq-dev \

Dockerfile.production

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM php:8.2-cli
2+
3+
RUN apt-get update && apt-get install -y \
4+
libpq-dev \
5+
libzip-dev
6+
RUN docker-php-ext-install pdo pdo_pgsql zip
7+
8+
9+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
10+
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
11+
&& php -r "unlink('composer-setup.php');"
12+
13+
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
14+
RUN apt-get install -y nodejs
15+
16+
WORKDIR /app
17+
18+
COPY . .
19+
RUN composer install
20+
RUN npm ci
21+
RUN npm run build
22+
23+
CMD ["bash", "-c", "php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=$PORT"]

0 commit comments

Comments
 (0)