We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a31d5 commit 93af323Copy full SHA for 93af323
generators/app/templates/.dockerignore
@@ -0,0 +1,3 @@
1
+build
2
+node_modules
3
+Dockerfile
generators/app/templates/Dockerfile
@@ -0,0 +1,12 @@
+FROM node:<%= elementNodeVersion %>-alpine as builder
+WORKDIR /app
+COPY . .
4
+RUN yarn && yarn build && yarn purge && yarn --production
5
+
6
+FROM node:<%= elementNodeVersion %>-alpine
7
+RUN apk add --no-cache curl
8
9
+COPY --from=builder /app/build build
10
+COPY --from=builder /app/node_modules node_modules
11
+HEALTHCHECK --interval=30s --timeout=30s --retries=3 CMD curl --fail http://${HOST}:${PORT}/health || exit 1
12
+CMD ["node", "build/index.js"]
0 commit comments