Skip to content

Commit

Permalink
Merge wemove/read2burn:master into 52north/read2burn:main
Browse files Browse the repository at this point in the history
  • Loading branch information
EHJ-52n committed Jun 4, 2024
2 parents d919e20 + c5227b9 commit 718976f
Show file tree
Hide file tree
Showing 6 changed files with 1,615 additions and 468 deletions.
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,24 @@ COPY . .
# RUN npm ci --only=production
# else
# RUN npm install
RUN npm ci --only=production \
RUN apk update \
&& apk upgrade \
&& apk add --no-cache tzdata \
&& npm ci --only=production \
&& rm -rf ${READ2BURN_HOME}/docker

####################
# Create image

FROM node:lts-alpine

# Your contact info
LABEL maintainer="Jürrens, Eike Hinderk <[email protected]>" \
org.opencontainers.image.authors="Jürrens, Eike Hinderk <[email protected]>" \
org.opencontainers.image.url="https://github.com/52North/read2burn.git" \
org.opencontainers.image.vendor="52°North GmbH" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.title="52°North Read 2 Burn Deployment"
ENV READ2BURN_HOME="/app"

WORKDIR ${READ2BURN_HOME}
Expand All @@ -38,4 +48,4 @@ ARG GIT_COMMIT
LABEL org.opencontainers.image.revision "${GIT_COMMIT}"

ARG BUILD_DATE
LABEL org.opencontainers.image.created "${BUILD_DATE}"
LABEL org.opencontainers.image.created "${BUILD_DATE}"
9 changes: 5 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
* Module dependencies.
*/
const express = require('express')
, routes = require('./routes')
, http = require('http')
, path = require('path')
, Umzug = require('umzug')
, bodyParser = require('body-parser')
, cron = require('node-cron')
, Datastore = require('nedb');
, Datastore = require('@seald-io/nedb')
, routes = require('./routes')
, i18n = require("i18n");
;

const app = express();
const umzug = new Umzug();
const i18n = require("i18n");

// default: using 'accept-language' header to guess language settings
app.use(i18n.init);
Expand All @@ -26,8 +27,8 @@ app.enable('trust proxy');
app.disable( 'x-powered-by' )

const nedb = new Datastore({filename: 'data/read2burn.db', autoload: true});
exports.nedb = nedb

module.exports.nedb = nedb;

i18n.configure({
locales: ['en', 'de'],
Expand Down
Loading

0 comments on commit 718976f

Please sign in to comment.