1
1
This repository has been archived on 2023-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
nextjs-13-template-with-tai.../Dockerfile

15 lines
320 B
Docker
Raw Permalink Normal View History

2023-07-01 19:49:24 +00:00
FROM node:lts-alpine
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY ["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
2023-07-01 21:19:26 +00:00
# Build the app
RUN npm run build
2023-07-01 19:49:24 +00:00
CMD ["npm", "start"]