add tests to dockerfile; remove namespace from deployment manifest
This commit is contained in:
parent
8c7f93c1a0
commit
3eeb15609a
|
@ -3,7 +3,12 @@ WORKDIR /app
|
|||
FROM base as packages
|
||||
ADD package.json yarn.lock /app/
|
||||
RUN yarn --production --frozen-lockfile
|
||||
FROM base as final
|
||||
FROM base as src
|
||||
COPY --from="packages" /app/node_modules /app/node_modules
|
||||
ADD . /app
|
||||
FROM src as test
|
||||
RUN yarn && \
|
||||
node lib/binaryQuerystring/index.test.js
|
||||
FROM src as final
|
||||
CMD node index.js
|
||||
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: '${NAMESPACE}'
|
||||
spec: {}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -77,4 +71,3 @@ spec:
|
|||
backend:
|
||||
serviceName: '${APP_NAME}'
|
||||
servicePort: http
|
||||
|
||||
|
|
Loading…
Reference in a new issue