generated from Fascinated/nextjs-13-template-with-tailwindcss
This commit is contained in:
parent
56ebc94673
commit
c5dfa63e1a
@ -21,5 +21,6 @@
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
**/media
|
||||
**/.gitea
|
||||
LICENSE
|
||||
README.md
|
||||
|
12
Dockerfile
12
Dockerfile
@ -9,15 +9,15 @@ COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm ci --production --silent && npm cache clean --force
|
||||
|
||||
# Copy only necessary files for production
|
||||
COPY .next ./.next
|
||||
COPY public ./public
|
||||
COPY config.json ./
|
||||
COPY next.config.js ./
|
||||
|
||||
# Opt out of Next.js telemetry
|
||||
RUN npx next telemetry disable
|
||||
|
||||
# Copy the rest of the files
|
||||
COPY . .
|
||||
|
||||
# Remove development dependencies
|
||||
RUN npm prune --production
|
||||
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user