lucianotonet commited on
Commit
6b5b1be
·
1 Parent(s): 2729dea

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM php:8.1-fpm
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ libonig-dev \
5
+ libpng-dev \
6
+ libxml2-dev \
7
+ zip \
8
+ unzip \
9
+ git \
10
+ curl
11
+
12
+ WORKDIR /app
13
+
14
+ RUN --mount=type=secret,id=GITHUB_PAT \
15
+ git clone https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git .
16
+
17
+ COPY . /app
18
+
19
+ RUN php artisan storage:link && \
20
+ php artisan config:cache && \
21
+ php artisan route:cache && \
22
+ php artisan view:cache
23
+
24
+ EXPOSE 7860
25
+
26
+ CMD ["/start.sh"]