generated from Fascinated/nextjs-13-template-with-tailwindcss
another attempt at making it smaller
Some checks failed
Publish Docker Image / docker (push) Failing after 19s
Some checks failed
Publish Docker Image / docker (push) Failing after 19s
This commit is contained in:
parent
e321ce1cb4
commit
56ebc94673
10
Dockerfile
10
Dockerfile
@ -9,15 +9,15 @@ COPY package.json ./
|
|||||||
COPY package-lock.json ./
|
COPY package-lock.json ./
|
||||||
RUN npm ci --production --silent && npm cache clean --force
|
RUN npm ci --production --silent && npm cache clean --force
|
||||||
|
|
||||||
# Copy the rest of the files
|
# Copy only necessary files for production
|
||||||
COPY . .
|
COPY .next ./.next
|
||||||
|
COPY public ./public
|
||||||
|
COPY config.json ./
|
||||||
|
COPY next.config.js ./
|
||||||
|
|
||||||
# Opt out of Next.js telemetry
|
# Opt out of Next.js telemetry
|
||||||
RUN npx next telemetry disable
|
RUN npx next telemetry disable
|
||||||
|
|
||||||
# Build the app
|
|
||||||
#RUN npm run build
|
|
||||||
|
|
||||||
# Expose port 3000
|
# Expose port 3000
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user