-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node): Ensure docker file can be generated when nest framework is…
… set closes: #17343
- Loading branch information
1 parent
719c6a5
commit 618d1c1
Showing
3 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Node Applications should generate a nest application with docker 1`] = ` | ||
"# This file is generated by Nx. | ||
# | ||
# Build the docker image with \`npx nx docker-build nestapp3120610\`. | ||
# Tip: Modify "docker-build" options in project.json to change docker build args. | ||
# | ||
# Run the container with \`docker run -p 3000:3000 -t nestapp3120610\`. | ||
FROM docker.io/node:lts-alpine | ||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
WORKDIR /app | ||
RUN addgroup --system nestapp3120610 && \\ | ||
adduser --system -G nestapp3120610 nestapp3120610 | ||
COPY dist/nestapp3120610 nestapp3120610/ | ||
RUN chown -R nestapp3120610:nestapp3120610 . | ||
# You can remove this install step if you build with \`--bundle\` option. | ||
# The bundled output will include external dependencies. | ||
RUN npm --prefix nestapp3120610 --omit=dev -f install | ||
CMD [ "node", "nestapp3120610" ] | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters