-
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.
Re-enables e2e tests for node Docker changes to be merged first: #26365
- Loading branch information
1 parent
929a57c
commit 295c422
Showing
3 changed files
with
127 additions
and
62 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 + webpack should generate a Dockerfile 1`] = ` | ||
"# This file is generated by Nx. | ||
# | ||
# Build the docker image with \`npx nx docker-build docker-express-app\`. | ||
# Tip: Modify "docker-build" options in project.json to change docker build args. | ||
# | ||
# Run the container with \`docker run -p 3000:3000 -t docker-express-app\`. | ||
FROM docker.io/node:lts-alpine | ||
ENV HOST=0.0.0.0 | ||
ENV PORT=3000 | ||
WORKDIR /app | ||
RUN addgroup --system docker-express-app && \\ | ||
adduser --system -G docker-express-app docker-express-app | ||
COPY dist/apps/docker-express-app docker-express-app/ | ||
RUN chown -R docker-express-app:docker-express-app . | ||
# You can remove this install step if you build with \`--bundle\` option. | ||
# The bundled output will include external dependencies. | ||
RUN npm --prefix docker-express-app --omit=dev -f install | ||
CMD [ "node", "docker-express-app" ] | ||
" | ||
`; |
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