1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

Upload dockerfiles

This commit is contained in:
Cadence Ember 2020-06-19 01:49:49 +12:00
parent 6b44f68050
commit 64ab9cfcee
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
3 changed files with 17 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
node_modules

7
Dockerfile Normal file
View File

@ -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"]

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
bibliogram:
build: .
volumes:
- ./config.js:/app/config.js:ro
- ./db:/app/db
ports:
- "10407:10407"
restart:
unless-stopped