-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- v0.30.0
- v0.29.0
- v0.28.0
- v0.27.7
- v0.27.3
- v0.27.2
- v0.27.1
- v0.27.0
- v0.26.0
- v0.25.4
- v0.25.3
- v0.25.2
- v0.25.0
- v0.24.4
- v0.24.3
- v0.24.1
- v0.24.0
- v0.23.0
- v0.22.0
- v0.19.9
- v0.19.8
- v0.19.7
- v0.19.6
- v0.19.5
- v0.19.4
- v0.19.3
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.0
- v0.17.5
- v0.17.4
- v0.17.3
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.0
- v0.15.0
- v0.14.14
- v0.14.13
- v0.14.11
- v0.14.10
- v0.14.9
- v0.14.8
- v0.14.7
- v0.14.6
- v0.14.5
- v0.14.4
- v0.14.3
- v0.14.2
- v0.14.1
- v0.14.0
- v0.13.8
- v0.13.7
- v0.13.6
- v0.13.5
- v0.13.4
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.7
- v0.12.6
- v0.12.5
- v0.12.4
- v0.12.3
- v0.12.2
- v0.12.0
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.4
- v0.8.3
- v0.8.2
- 0.8.1
1 parent
517ebf8
commit e423cae
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|