This commit is contained in:
hatim boufnichel 2024-04-05 23:40:07 +02:00
parent 117f15103a
commit 4925362941
2 changed files with 22 additions and 0 deletions

17
src/tests/DockerFile Normal file
View 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" ]

View file

@ -106,3 +106,8 @@ services:
# - '8084:8080' # - '8084:8080'
- '10004:10009' - '10004:10009'
- '9738:9735' - '9738:9735'
web:
build: ./src/tests/DockerFile
# ports:
# - "8000:5000"