generated from Fascinated/nextjs-13-template-with-tailwindcss
cleanup Dockerfile - now 120mb smaller (300mb -> 180mb)
All checks were successful
Publish Docker Image / docker (push) Successful in 1m21s
All checks were successful
Publish Docker Image / docker (push) Successful in 1m21s
This commit is contained in:
parent
58e51ed821
commit
e8dae24f97
@ -1,4 +1,3 @@
|
||||
# Use a smaller base image
|
||||
FROM node:lts-slim
|
||||
|
||||
ENV NODE_ENV=production
|
||||
@ -21,9 +20,5 @@ RUN npm prune --production
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
# Set permissions and user
|
||||
#RUN chown -R node /usr/src/app
|
||||
#USER node
|
||||
|
||||
# Start the app
|
||||
CMD ["npm", "start"]
|
Loading…
x
Reference in New Issue
Block a user