mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-11-19 20:56:31 +00:00
Upload dockerfiles
This commit is contained in:
parent
6b44f68050
commit
64ab9cfcee
3 changed files with 17 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
node_modules
|
||||
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
9
docker-compose.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
bibliogram:
|
||||
build: .
|
||||
volumes:
|
||||
- ./config.js:/app/config.js:ro
|
||||
- ./db:/app/db
|
||||
ports:
|
||||
- "10407:10407"
|
||||
restart:
|
||||
unless-stopped
|
||||
Loading…
Add table
Reference in a new issue