Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ViddeM committed May 23, 2024
1 parent f678903 commit af92022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001

WORKDIR /app
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/server.js /app/package.json /app/yarn.lock ./
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/package.json /app/yarn.lock ./
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/public ./public
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/.next ./.next
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/next.config.js ./
COPY --from=BUILD_IMAGE --chown=nextjs:nodejs /app/next.config.mjs ./

USER nextjs

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prettier:check": "yarn generate-gql-types && prettier --list-different --ignore-pattern .gitignore \"**/*.{ts,tsx,js,jsx,json,yml,yaml}\"",
"prettier:fix": "yarn generate-gql-types && prettier --write --loglevel error --ignore-pattern .gitignore \"**/*.{ts,tsx,js,jsx,json,yml,yaml}\"",
"generate-gql-schema": "cd ../backend && cargo run --bin export_sdl > ../frontend/schema.gql",
"start": "node server.js",
"start": "next start",
"test": "yarn generate-gql-types && jest -c ./.jestrc.json \".*\\.test\\.(ts|js)\" --passWithNoTests"
},
"dependencies": {
Expand Down

0 comments on commit af92022

Please sign in to comment.