Skip to content

Commit

Permalink
Keep solving build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminbours committed Oct 14, 2023
1 parent 3af185f commit cb56ba5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/front_cd_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/composite-front:latest
build-args: |
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
NEXT_PUBLIC_STAGE=staging
NEXT_PUBLIC_BACKEND_URL=http://composite-api.ddns.net
NEXT_PUBLIC_URL=http://composite.ddns.net
1 change: 1 addition & 0 deletions back/Dockerfile.back.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*
!.npmrc

!back
back/node_modules
Expand Down
8 changes: 7 additions & 1 deletion front/Dockerfile.front
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ FROM dev as build-staging

WORKDIR /app
ENV NODE_ENV production
RUN npm run build:staging -w front
ARG NEXT_PUBLIC_STAGE
ENV NEXT_PUBLIC_STAGE ${NEXT_PUBLIC_STAGE}
ARG NEXT_PUBLIC_BACKEND
ENV NEXT_PUBLIC_BACKEND ${NEXT_PUBLIC_BACKEND}
ARG NEXT_PUBLIC_URL
ENV NEXT_PUBLIC_URL ${NEXT_PUBLIC_URL}
RUN npm run build -w front

FROM node:18-alpine AS base
WORKDIR /app
Expand Down
1 change: 1 addition & 0 deletions front/Dockerfile.front.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*
!.npmrc

!front
front/node_modules
Expand Down

0 comments on commit cb56ba5

Please sign in to comment.