Upload dockerfiles
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user