-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Oppdatere gh deployment (#92)"
This reverts commit 983cc34.
- Loading branch information
1 parent
983cc34
commit 2206667
Showing
23 changed files
with
1,002 additions
and
392 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
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
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
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,4 @@ | ||
[defaults] | ||
project=dp-dagpenger | ||
url=https://sentry.gc.nav.no/ | ||
org=nav |
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,30 @@ | ||
FROM node:18 AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY schema /usr/src/app/schema | ||
COPY package*.json codegen.yml .npmrc /usr/src/app/ | ||
RUN --mount=type=secret,id=NODE_AUTH_TOKEN \ | ||
NODE_AUTH_TOKEN=$(cat /run/secrets/NODE_AUTH_TOKEN) \ | ||
npm ci --prefer-offline --no-audit | ||
|
||
COPY . /usr/src/app | ||
|
||
ARG SENTRY_RELEASE | ||
RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN \ | ||
SENTRY_AUTH_TOKEN=$(cat /run/secrets/SENTRY_AUTH_TOKEN) \ | ||
npm run build && npm prune --production | ||
|
||
FROM node:18-alpine AS runtime | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ENV PORT=3000 \ | ||
NODE_ENV=production \ | ||
TZ=Europe/Oslo | ||
NODE_ENV=production | ||
|
||
COPY next.config.js ./ | ||
COPY public ./public | ||
COPY .next/standalone ./ | ||
COPY .next/static ./.next/static | ||
COPY --from=builder /usr/src/app/ /usr/src/app/ | ||
|
||
EXPOSE 3000 | ||
USER node | ||
|
||
CMD ["node", "server.js"] | ||
|
||
CMD ["./node_modules/.bin/next", "start"] |
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
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
Oops, something went wrong.