Skip to content

Commit

Permalink
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions agenta-web/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
FROM node:18-alpine

# WORKDIR /app
WORKDIR /app

# # Install dependencies based on the preferred package manager
# COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
# RUN \
# if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
# elif [ -f package-lock.json ]; then npm i; \
# elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
# # Allow install without lockfile, so example works even without Node.js installed locally
# else echo "Warning: Lockfile not found. It is recommended to commit lockfiles to version control." && yarn install; \
# fi
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm i; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
# Allow install without lockfile, so example works even without Node.js installed locally
else echo "Warning: Lockfile not found. It is recommended to commit lockfiles to version control." && yarn install; \
fi

# COPY src ./src
# COPY public ./public
# COPY next.config.js .
# COPY tsconfig.json .
# COPY postcss.config.js .
# COPY .env .
# RUN if [ -f .env.local ]; then cp .env.local .; fi
# # used in cloud
# COPY sentry.* .
# # Next.js collects completely anonymous telemetry data about general usage. Learn more here: https://nextjs.org/telemetry
# # Uncomment the following line to disable telemetry at run time
# # ENV NEXT_TELEMETRY_DISABLED 1
COPY src ./src
COPY public ./public
COPY next.config.js .
COPY tsconfig.json .
COPY postcss.config.js .
COPY .env .
RUN if [ -f .env.local ]; then cp .env.local .; fi
# used in cloud
COPY sentry.* .
# Next.js collects completely anonymous telemetry data about general usage. Learn more here: https://nextjs.org/telemetry
# Uncomment the following line to disable telemetry at run time
# ENV NEXT_TELEMETRY_DISABLED 1

# # Note: Don't expose ports here, Compose will handle that for us
# Note: Don't expose ports here, Compose will handle that for us

# # Start Next.js in development mode based on the preferred package manager
# CMD \
# if [ -f yarn.lock ]; then yarn dev; \
# elif [ -f package-lock.json ]; then npm run dev; \
# elif [ -f pnpm-lock.yaml ]; then pnpm dev; \
# else yarn dev; \
# fi
# Start Next.js in development mode based on the preferred package manager
CMD \
if [ -f yarn.lock ]; then yarn dev; \
elif [ -f package-lock.json ]; then npm run dev; \
elif [ -f pnpm-lock.yaml ]; then pnpm dev; \
else yarn dev; \
fi

0 comments on commit e423cae

Please sign in to comment.