lucianotonet commited on
Commit
954924b
·
1 Parent(s): 2251da5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
- # syntax=docker/dockerfile:1.2
2
- FROM php:8.2-fpm
3
 
4
  # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
@@ -26,8 +25,7 @@ RUN echo "Cache bust: $CACHEBUST" > /dev/null
26
  # Check if we are in a local or online environment
27
  ARG APP_ENV
28
 
29
- RUN --mount=type=secret,id=GITHUB_PAT \
30
- rm -rf /app/* /app/.* || true && \
31
  git clone --no-cache --branch next https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git .
32
 
33
  # If local, just copy the files
@@ -58,4 +56,4 @@ COPY start.sh /start.sh
58
  RUN chmod +x /start.sh
59
 
60
  # Run the script when the container starts
61
- CMD ["/start.sh"]
 
1
+ FROM php:8.1-fpm
 
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
 
25
  # Check if we are in a local or online environment
26
  ARG APP_ENV
27
 
28
+ RUN --mount=type=secret,id=GITHUB_PAT \
 
29
  git clone --no-cache --branch next https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git .
30
 
31
  # If local, just copy the files
 
56
  RUN chmod +x /start.sh
57
 
58
  # Run the script when the container starts
59
+ CMD ["git", "status"]