-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Distroless image + docker config updater + PR build workflow (#166)
* 👷 distroless image og docker config updater * 👷 bygg pull requester
- Loading branch information
Showing
3 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build pull request | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
buildDev: | ||
uses: navikt/aap-workflows/.github/workflows/frontend-next-only-build.yml@main | ||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
secrets: inherit | ||
with: | ||
cluster: dev-gcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Update dependabot config | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 7 * * 3' | ||
|
||
jobs: | ||
checkForConfigUpdate: | ||
uses: navikt/aap-workflows/.github/workflows/dependabot-frontend-next-config-updater.yml@main | ||
permissions: | ||
contents: write | ||
id-token: write | ||
packages: write | ||
pull-requests: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
FROM node:20-alpine | ||
FROM gcr.io/distroless/nodejs20-debian12@sha256:f912a7599e5338df6527a669def29bddc9469fdac9ab22c4cc9282c1b64c868b | ||
|
||
ENV NODE_ENV production | ||
|
||
RUN addgroup --system --gid 1069 nodejs | ||
RUN adduser --system --uid 1069 nextjs | ||
|
||
WORKDIR /app | ||
COPY --chown=nextjs:nodejs .next/standalone ./ | ||
COPY --chown=nextjs:nodejs .next/static ./.next/static | ||
COPY .next/standalone ./ | ||
COPY .next/static ./.next/static | ||
|
||
USER nextjs | ||
ENV NODE_ENV production | ||
Check warning on line 8 in Dockerfile GitHub Actions / buildDev / buildLegacy key/value format with whitespace separator should not be used
Check warning on line 8 in Dockerfile GitHub Actions / buildProd / buildLegacy key/value format with whitespace separator should not be used
|
||
|
||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
Check warning on line 12 in Dockerfile GitHub Actions / buildDev / buildLegacy key/value format with whitespace separator should not be used
Check warning on line 12 in Dockerfile GitHub Actions / buildProd / buildLegacy key/value format with whitespace separator should not be used
|
||
|
||
CMD ["node", "server.js"] | ||
CMD ["server.js"] |