Spaces:
Sleeping
Sleeping
Commit
·
2251da5
1
Parent(s):
a86f60e
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
@@ -26,12 +26,9 @@ RUN echo "Cache bust: $CACHEBUST" > /dev/null
|
|
26 |
# Check if we are in a local or online environment
|
27 |
ARG APP_ENV
|
28 |
|
29 |
-
# If online, clone the private repository without using cache
|
30 |
RUN --mount=type=secret,id=GITHUB_PAT \
|
31 |
-
if [ "$APP_ENV" != "local" ] ; then \
|
32 |
rm -rf /app/* /app/.* || true && \
|
33 |
-
git clone --no-cache --branch next https://lucianotonet:$(cat /run/secrets/GITHUB_PAT)@github.com/agenciamav/app.agenciamav.com.br.git .
|
34 |
-
fi
|
35 |
|
36 |
# If local, just copy the files
|
37 |
COPY . /app
|
|
|
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
|
34 |
COPY . /app
|