generated from Fascinated/nextjs-13-template-with-tailwindcss
Compare commits
2 Commits
1317624ce5
...
1840426f79
Author | SHA1 | Date | |
---|---|---|---|
1840426f79 | |||
df9d16ccfa |
@ -1,12 +1,10 @@
|
||||
FROM node:lts-alpine
|
||||
ENV NODE_ENV=production
|
||||
WORKDIR /usr/src/app
|
||||
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||||
COPY ["config.json", "package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
||||
RUN npm install --production --silent && mv node_modules ../
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
RUN chown -R node /usr/src/app
|
||||
USER node
|
||||
|
||||
# Opt out of NextJS telemetry
|
||||
RUN npx next telemetry disable
|
||||
@ -14,4 +12,8 @@ RUN npx next telemetry disable
|
||||
# Build the app
|
||||
RUN npm run build
|
||||
|
||||
# Setup permissions
|
||||
RUN chown -R node /usr/src/app
|
||||
USER node
|
||||
|
||||
CMD ["npm", "start"]
|
||||
|
8322
package-lock.json
generated
8322
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@ -1,25 +1,25 @@
|
||||
{
|
||||
"name": "nextjs-13-template-with-tailwindcss",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "20.3.3",
|
||||
"@types/react": "18.2.14",
|
||||
"@types/react-dom": "18.2.6",
|
||||
"autoprefixer": "10.4.14",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-config-next": "13.4.7",
|
||||
"next": "13.4.7",
|
||||
"postcss": "8.4.24",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"tailwindcss": "3.3.2",
|
||||
"typescript": "5.1.6"
|
||||
}
|
||||
"name": "simple-links",
|
||||
"version": "0.1.0",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "20.3.3",
|
||||
"@types/react": "18.2.14",
|
||||
"@types/react-dom": "18.2.6",
|
||||
"autoprefixer": "10.4.14",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-config-next": "13.4.7",
|
||||
"next": "13.4.7",
|
||||
"postcss": "8.4.24",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"tailwindcss": "3.3.2",
|
||||
"typescript": "5.1.6"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user