add newlines to end Dockerfiles
This commit is contained in:
@ -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"]
|
||||
|
||||
@ -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"]
|
||||
|
||||
@ -33,4 +33,4 @@ COPY --from=build /app/api-golang api-golang
|
||||
# Indicate expected port
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/api-golang"]
|
||||
CMD ["/api-golang"]
|
||||
|
||||
@ -45,4 +45,4 @@ USER nonroot
|
||||
# Indicate expected port
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/api-golang"]
|
||||
CMD ["/api-golang"]
|
||||
|
||||
@ -55,4 +55,4 @@ USER nonroot
|
||||
# Indicate expected port
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/api-golang"]
|
||||
CMD ["/api-golang"]
|
||||
|
||||
@ -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/
|
||||
@ -4,4 +4,4 @@ COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@ -4,4 +4,4 @@ COPY . .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@ -11,4 +11,4 @@ RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@ -14,4 +14,4 @@ RUN --mount=type=cache,target=/usr/src/app/.npm \
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
Reference in New Issue
Block a user