mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Upload dockerfiles
This commit is contained in:
parent
6b44f68050
commit
64ab9cfcee
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…
Reference in New Issue
Block a user