Comments (2)
Hello @js-on,
this is currently a bug which has not been fixed. It definitely was working sometime before. We have a custom postinstall hook, which normally should install sqlite if the --sqlite
flag is used on npm ci --sqlite
. Normally this should also work inside of the builder stage, but it could be that some native stuff is not correctly copied.
from vocascan-server.
In the meantime, however, there are two ways to fix this problem.
- Use a different database than Sqlite3, for example Postgresql. This lets you get your server up and running.
- Either your way directly modifying the docker build script file, or write a wrapper around it, as shown below:
create a "Dockerfile" in your directory with the following content:
FROM vocascan/server:latest
RUN npm install sqlite3
After that update your "docker-compose.yml" file and add the "build" property and remove the "image" property. This could look like this:
version: "3.8"
services:
vocascan:
restart: always
build:
context: .
dockerfile: Dockerfile
tty: true
environment:
VOCASCAN_CONFIG: "/etc/vocascan/vocascan.config.js"
ports:
- "8000:8000"
volumes:
- "./vocascan.config.js:/etc/vocascan/vocascan.config.js:ro"
This will pull the vocascan/server image as base image, and will build a local image with the sqlite3 npm package installed. I just tested it locally, with success.
from vocascan-server.
Related Issues (10)
- bug/cors-error HOT 1
- On login: error: Error: Object.fromEntries is not a function HOT 2
- version alignment instructions for server install HOT 5
- Update Swagger Documentation for password reset
- Route for checking duplicate vocabs HOT 10
- Add stats to group response HOT 2
- Routes for group specific vocab activation
- Add more configuration examples HOT 3
- No Database HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vocascan-server.