diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..441dda3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:12.18.1-alpine +RUN apk --no-cache add git python3 make g++ +WORKDIR /app +COPY . . +RUN npm install --no-optional +EXPOSE 10407 +CMD ["npm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..28ec707 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +bibliogram: + build: . + volumes: + - ./config.js:/app/config.js:ro + - ./db:/app/db + ports: + - "10407:10407" + restart: + unless-stopped