generated from Fascinated/nextjs-13-template-with-tailwindcss
Fascinated
d7a4ad196b
All checks were successful
Publish Docker Image / docker (push) Successful in 1m56s
21 lines
405 B
Docker
21 lines
405 B
Docker
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
|
|
|
|
# Opt out of NextJS telemetry
|
|
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"]
|