lucianotonet commited on
Commit
6def1b8
·
1 Parent(s): 0e0137f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM php:8.2-fpm
2
 
3
  RUN apt-get update && apt-get install -y \
4
  libonig-dev \
@@ -18,13 +18,9 @@ WORKDIR /app
18
  ARG CACHEBUST=1
19
  RUN echo "Cache bust: $CACHEBUST" > /dev/null
20
 
21
- ARG APP_ENV
22
-
23
  RUN --mount=type=secret,id=GITHUB_PAT \
24
- if [ "$APP_ENV" != "local" ] ; then \
25
  rm -rf /app/* /app/.* || true && \
26
- git clone https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git . ; \
27
- fi
28
 
29
  COPY . /app
30
 
 
1
+ FROM php:8.1-fpm
2
 
3
  RUN apt-get update && apt-get install -y \
4
  libonig-dev \
 
18
  ARG CACHEBUST=1
19
  RUN echo "Cache bust: $CACHEBUST" > /dev/null
20
 
 
 
21
  RUN --mount=type=secret,id=GITHUB_PAT \
 
22
  rm -rf /app/* /app/.* || true && \
23
+ git clone https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git .
 
24
 
25
  COPY . /app
26