fix config?

This commit is contained in:
Lee 2023-07-02 15:09:25 +01:00
parent 1840426f79
commit fa84e5edf7
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM node:lts-alpine
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["config.json", "package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install --production --silent && mv node_modules ../
COPY . .
EXPOSE 3000
@ -10,7 +10,7 @@ EXPOSE 3000
RUN npx next telemetry disable
# Build the app
RUN npm run build
#RUN npm run build
# Setup permissions
RUN chown -R node /usr/src/app

View File

@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"start": "next build && next start",
"lint": "next lint"
},
"dependencies": {