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
|
FROM node:lts-alpine
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
WORKDIR /usr/src/app
|
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 ../
|
RUN npm install --production --silent && mv node_modules ../
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
RUN chown -R node /usr/src/app
|
|
||||||
USER node
|
|
||||||
|
|
||||||
# Opt out of NextJS telemetry
|
# Opt out of NextJS telemetry
|
||||||
RUN npx next telemetry disable
|
RUN npx next telemetry disable
|
||||||
@ -14,4 +12,8 @@ RUN npx next telemetry disable
|
|||||||
# Build the app
|
# Build the app
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
# Setup permissions
|
||||||
|
RUN chown -R node /usr/src/app
|
||||||
|
USER node
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
6
package-lock.json
generated
6
package-lock.json
generated
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "nextjs-13-template-with-tailwindcss",
|
"name": "simple-links",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": false,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "nextjs-13-template-with-tailwindcss",
|
"name": "simple-links",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "20.3.3",
|
"@types/node": "20.3.3",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "nextjs-13-template-with-tailwindcss",
|
"name": "simple-links",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
Loading…
Reference in New Issue
Block a user