add newlines to end Dockerfiles
This commit is contained in:
@ -4,4 +4,4 @@ COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -6,4 +6,4 @@ COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -9,4 +9,4 @@ COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -15,4 +15,4 @@ RUN npm install
|
||||
# Again, copy only the necessary files
|
||||
COPY ./src/ .
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -19,4 +19,4 @@ USER node
|
||||
# Again, copy only the necessary files
|
||||
COPY --chown=node:node ./src/ .
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -23,4 +23,4 @@ USER node
|
||||
# Again, copy only the necessary files
|
||||
COPY --chown=node:node ./src/ .
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -26,4 +26,4 @@ COPY --chown=node:node ./src/ .
|
||||
# Indicate expected port
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
@ -30,7 +30,3 @@ COPY --chown=node:node ./src/ .
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
# TODO: Use multi-stage with distroless image or chainguard image?
|
||||
# https://github.com/GoogleContainerTools/distroless/blob/main/examples/nodejs/Dockerfile
|
||||
# https://edu.chainguard.dev/chainguard/chainguard-images/reference/node/overview/
|
||||
@ -33,7 +33,3 @@ COPY --chown=node:node ./src/ .
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "node", "index.js" ]
|
||||
|
||||
# TODO: Use multi-stage with distroless image or chainguard image?
|
||||
# https://github.com/GoogleContainerTools/distroless/blob/main/examples/nodejs/Dockerfile
|
||||
# https://edu.chainguard.dev/chainguard/chainguard-images/reference/node/overview/
|
||||
Reference in New Issue
Block a user