Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/portal-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY apps/portal-api/. ./apps/portal-api/
# Build the backend
WORKDIR /app/apps/portal-api
RUN corepack enable && \
yarn build
yarn dlx nx --no-cloud build portal-api

# Production image, copy all the files and run next
FROM base AS runner
Expand Down
9 changes: 6 additions & 3 deletions apps/portal-e2e-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ RUN corepack enable && \
COPY ./apps/portal-e2e-tests/playwright.config.ts ./apps/portal-e2e-tests/
COPY ./apps/portal-e2e-tests/tests ./apps/portal-e2e-tests/tests

# Copy migrations and seeds (these are copied by the CI pipeline before the Docker build)
COPY ./apps/portal-e2e-tests/migrations ./apps/portal-e2e-tests/migrations
COPY ./apps/portal-e2e-tests/seeds ./apps/portal-e2e-tests/seeds
# Create directories first
RUN mkdir -p ./apps/portal-e2e-tests/migrations ./apps/portal-e2e-tests/seeds

# Copy migrations and seeds if they exist (using wildcard trick)
COPY ./apps/portal-api/src/migrations* ./apps/portal-e2e-tests/migrations/
COPY ./apps/portal-api/tests/seeds* ./apps/portal-e2e-tests/seeds/

WORKDIR /app/apps/portal-e2e-tests

Expand Down
2 changes: 1 addition & 1 deletion apps/portal-e2e-tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "test_e2e",
"name": "portal-e2e-tests",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/portal-e2e-tests",
"projectType": "application",
Expand Down
2 changes: 1 addition & 1 deletion apps/portal-front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV NEXT_PUBLIC_APP_VERSION=$APP_VERSION
WORKDIR /app/apps/portal-front
RUN corepack enable && \
echo "NEXT_PUBLIC_APP_VERSION=$APP_VERSION" > .env.local && \
yarn build
yarn dlx nx --no-cloud build portal-front

# Production image, copy all the files and run next
FROM base AS runner
Expand Down
4 changes: 2 additions & 2 deletions apps/portal-front/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"build": {
"executor": "nx:run-commands",
"outputs": ["{projectRoot}/dist"],
"outputs": ["{options.outputPath}"],
"options": {
"cwd": "apps/portal-front",
"command": "relay-compiler && tsx scripts/generate-enum.ts && next build"
"command": "yarn build"
}
},
"start": {
Expand Down