up
This commit is contained in:
parent
117f15103a
commit
4925362941
2 changed files with 22 additions and 0 deletions
17
src/tests/DockerFile
Normal file
17
src/tests/DockerFile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM node:10-alpine
|
||||
|
||||
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||
|
||||
WORKDIR /home/node/app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
USER node
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY env.example .env
|
||||
|
||||
COPY --chown=node:node . .
|
||||
|
||||
CMD [ "npm", "test" ]
|
||||
|
|
@ -106,3 +106,8 @@ services:
|
|||
# - '8084:8080'
|
||||
- '10004:10009'
|
||||
- '9738:9735'
|
||||
web:
|
||||
build: ./src/tests/DockerFile
|
||||
|
||||
# ports:
|
||||
# - "8000:5000"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue