Skip to content

Commit

Permalink
Add debugging ls
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 9, 2024
1 parent f331200 commit dd6e8f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN corepack enable
RUN yarn --frozen-lockfile

RUN yarn install --immutable
RUN ls /app

# 2. Rebuild the source code only when needed
FROM base AS builder
Expand All @@ -20,7 +20,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . .
# This will do the trick, use the corresponding env file for each environment.
COPY .env.production .env.production
RUN npm run build
RUN yarn run build

# 3. Production image, copy all the files and run next
FROM base AS runner
Expand All @@ -45,4 +45,4 @@ EXPOSE 3005

ENV PORT=3005

CMD HOSTNAME=localhost node server.js
CMD HOSTNAME="0.0.0.0" node server.js

0 comments on commit dd6e8f2

Please sign in to comment.