fix: module '@keyv/sqlite' is not loaded when build
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -10,6 +10,16 @@ COPY . .
|
|||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
EXPOSE 3000
|
|
||||||
|
|
||||||
ENTRYPOINT ["node", ".output/server/index.mjs"]
|
FROM node:18-alpine3.16
|
||||||
|
|
||||||
|
ENV NITRO_HOST=0.0.0.0
|
||||||
|
ENV NITRO_PORT=80
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=builder /app/.output .
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
ENTRYPOINT ["node", "server/index.mjs"]
|
||||||
@@ -5,4 +5,4 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- '${APP_PORT:-3000}:3000'
|
- '${APP_PORT:-80}:80'
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
import Keyv from 'keyv'
|
import Keyv from 'keyv'
|
||||||
|
import KeyvSqlite from "@keyv/sqlite";
|
||||||
|
|
||||||
|
const sqlite = new KeyvSqlite()
|
||||||
|
|
||||||
const cacheOptions = {
|
const cacheOptions = {
|
||||||
namespace: 'settings',
|
namespace: 'settings',
|
||||||
|
|||||||
Reference in New Issue
Block a user