Skip to content

Commit

Permalink
chore: Setup docker for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnault committed Oct 5, 2021
1 parent 1ccc498 commit cde99bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:16.8.0-alpine
WORKDIR /app
COPY package*.json ./
RUN npm i
COPY ./ ./
CMD ["npm", "run", "test"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "3.8"
services:
lib:
build:
context: .
volumes:
- ./:/app
- lib_node_modules:/app/node_modules # ignore node_modules
volumes:
lib_node_modules:

0 comments on commit cde99bf

Please sign in to comment.