1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-21 23:57:30 +00:00

Compare commits

..

No commits in common. "3b18a7028ef168f559642816e7311c76dd0dd866" and "6b667f5f00478508d1e0698d9ee4836c7b45e57a" have entirely different histories.

5 changed files with 59 additions and 0 deletions

27
.dockerignore Normal file
View File

@ -0,0 +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
# Stuff Docker doesn't need
.git
art
*.log
*.csv

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:14.5.0-alpine as build
RUN apk --no-cache add git python3 make g++
WORKDIR /app
COPY . .
COPY ./.config.js.default ./config.js
RUN npm install --no-optional
FROM node:14.5.0-alpine as app
WORKDIR /app
COPY --from=build /app /app
RUN apk add --no-cache graphicsmagick
EXPOSE 10407
CMD ["npm", "start"]

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: npm run $(test "$BIBLIOGRAM_ENTRY" = 'assistant' && echo 'assistant' || echo 'start')

6
app.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "Bibliogram",
"description": "An alternative front-end for Instagram.",
"repository": "https://git.sr.ht/~cadence/bibliogram",
"logo": "https://bibliogram.art/android-chrome-192x192.png"
}

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3'
volumes:
db:
services:
bibliogram:
build: .
image: cloudrac3r/bibliogram
volumes:
- db:/app/db
ports:
- 10407:10407
restart: unless-stopped