Skip to content

Commit fa773d7

Browse files
committed
chore: update frontend docker configuration
1 parent 2369f44 commit fa773d7

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/backend/src/Infrastructure/DependencyInjection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ IConfiguration configuration
264264
configuration["Email:Sender"]
265265
);
266266

267-
if (environment.IsDevelopment() || environment.IsStaging())
267+
if (environment.IsDevelopment())
268268
{
269269
builder.AddSmtpSender(
270270
configuration["Email:Host"],

apps/frontend/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88

99
COPY package.json ./
1010

11-
RUN npm install
11+
RUN yarn install
1212

1313
FROM base AS builder
1414

@@ -18,18 +18,17 @@ COPY --from=deps /app/node_modules ./node_modules
1818
COPY . .
1919

2020
ENV NEXT_TELEMETRY_DISABLED=1
21-
ENV NODE_ENV=production
2221

2322
ARG NEXT_PUBLIC_API_PATH
2423

25-
RUN npm run build
24+
RUN yarn run build
2625

2726
FROM base AS runner
2827

2928
WORKDIR /app
3029

31-
ENV NEXT_TELEMETRY_DISABLED=1
3230
ENV NODE_ENV=production
31+
ENV NEXT_TELEMETRY_DISABLED=1
3332

3433
RUN addgroup --system --gid 1001 nodejs
3534
RUN adduser --system --uid 1001 nextjs

apps/frontend/public/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)