add newlines to end Dockerfiles

This commit is contained in:
sid palas
2023-02-10 10:37:13 -05:00
parent f8dda04c6f
commit 9001f31036
20 changed files with 18 additions and 30 deletions

View File

@ -14,4 +14,4 @@ COPY . .
# Compile application during build rather than at runtime
RUN go build -o api-golang
CMD ["./api-golang"]
CMD ["./api-golang"]

View File

@ -27,4 +27,4 @@ WORKDIR /
# Copy the binary from the build stage
COPY --from=build /app/api-golang api-golang
CMD ["/api-golang"]
CMD ["/api-golang"]

View File

@ -33,4 +33,4 @@ COPY --from=build /app/api-golang api-golang
# Indicate expected port
EXPOSE 8080
CMD ["/api-golang"]
CMD ["/api-golang"]

View File

@ -45,4 +45,4 @@ USER nonroot
# Indicate expected port
EXPOSE 8080
CMD ["/api-golang"]
CMD ["/api-golang"]

View File

@ -55,4 +55,4 @@ USER nonroot
# Indicate expected port
EXPOSE 8080
CMD ["/api-golang"]
CMD ["/api-golang"]

View File

@ -4,4 +4,4 @@ COPY . .
RUN npm install
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]

View File

@ -6,4 +6,4 @@ COPY . .
RUN npm install
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]

View File

@ -9,4 +9,4 @@ COPY . .
RUN npm install
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]

View File

@ -15,4 +15,4 @@ RUN npm install
# Again, copy only the necessary files
COPY ./src/ .
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]

View File

@ -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" ]

View File

@ -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" ]

View File

@ -26,4 +26,4 @@ COPY --chown=node:node ./src/ .
# Indicate expected port
EXPOSE 3000
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]

View File

@ -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/

View File

@ -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/

View File

@ -4,4 +4,4 @@ COPY . .
RUN npm install
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "dev"]

View File

@ -4,4 +4,4 @@ COPY . .
RUN npm install
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "dev"]

View File

@ -11,4 +11,4 @@ RUN npm install
COPY . .
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "dev"]

View File

@ -14,4 +14,4 @@ RUN --mount=type=cache,target=/usr/src/app/.npm \
COPY . .
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "dev"]

View File

@ -23,6 +23,4 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build usr/src/app/dist/ /usr/share/nginx/html
EXPOSE 80
# No CMD specified... will uses CMD/ENTRYPOINT from base image (nginx:1.23-alpine)
EXPOSE 80

View File

@ -26,6 +26,4 @@ COPY --link nginx.conf /etc/nginx/conf.d/default.conf
COPY --link --from=build usr/src/app/dist/ /usr/share/nginx/html
EXPOSE 80
# No CMD specified... will uses CMD/ENTRYPOINT from base image (nginx:1.23-alpine)
EXPOSE 80