fix: try using docker files prebuilt for repos instead of single file
Some checks failed
/ build (push) Failing after 25s
Some checks failed
/ build (push) Failing after 25s
This commit is contained in:
parent
02604e9238
commit
1f13ed1b78
2 changed files with 4 additions and 6 deletions
|
@ -20,10 +20,9 @@ jobs:
|
|||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
file: ./apps/frontend/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
target: frontend
|
||||
tags: |
|
||||
git.kakio.us/kakious/authcore-frontend:latest
|
||||
git.kakio.us/kakious/authcore-frontend:${{ github.sha }}
|
||||
|
@ -32,10 +31,9 @@ jobs:
|
|||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
file: ./apps/backend/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
target: backend
|
||||
tags: |
|
||||
git.kakio.us/kakious/authcore-backend:latest
|
||||
git.kakio.us/kakious/authcore-backend:${{ github.sha }}
|
||||
|
|
|
@ -31,7 +31,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
|||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
# Learn more here: https://nextjs.org/telemetry
|
||||
# Uncomment the following line in case you want to disable telemetry during the build.
|
||||
# ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN \
|
||||
if [ -f yarn.lock ]; then yarn run build; \
|
||||
|
@ -46,7 +46,7 @@ WORKDIR /app
|
|||
|
||||
ENV NODE_ENV=production
|
||||
# Uncomment the following line in case you want to disable telemetry during runtime.
|
||||
# ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
|
Loading…
Add table
Reference in a new issue