mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-10-31 21:47:29 +00:00
Update dockerfiles
This commit is contained in:
parent
529a75437a
commit
84cd04dae0
@ -1 +1,27 @@
|
|||||||
|
# Editor stuff
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
# Test stuff
|
||||||
|
test
|
||||||
|
coverage
|
||||||
|
.nyc_output
|
||||||
|
src/lib/utils/saved_requests/files
|
||||||
|
|
||||||
|
# Database stuff
|
||||||
|
db
|
||||||
|
*.log
|
||||||
|
*.csv
|
||||||
|
|
||||||
|
# Personal stuff
|
||||||
|
notes.txt
|
||||||
|
config.js
|
||||||
|
|
||||||
|
# Cached stuff
|
||||||
|
db
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
|
# Stuff Docker doesn't need
|
||||||
|
.git
|
||||||
|
art
|
||||||
|
*.log
|
||||||
|
*.csv
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
FROM node:12.18.1-alpine as build
|
FROM node:14.5.0-alpine as build
|
||||||
RUN apk --no-cache add git python3 make g++
|
RUN apk --no-cache add git python3 make g++
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY ./.config.js.default ./config.js
|
||||||
RUN npm install --no-optional
|
RUN npm install --no-optional
|
||||||
|
|
||||||
FROM node:12.18.1-alpine as app
|
FROM node:14.5.0-alpine as app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app /app
|
COPY --from=build /app /app
|
||||||
EXPOSE 10407
|
EXPOSE 10407
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
version: '3'
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
services:
|
||||||
bibliogram:
|
bibliogram:
|
||||||
build: .
|
build: .
|
||||||
|
image: cloudrac3r/bibliogram
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.js:/app/config.js:ro
|
- db:/app/db
|
||||||
- ./db:/app/db
|
|
||||||
ports:
|
ports:
|
||||||
- "10407:10407"
|
- 10407:10407
|
||||||
restart:
|
restart: unless-stopped
|
||||||
unless-stopped
|
|
||||||
|
Loading…
Reference in New Issue
Block a user