fix: update dockerfile

This commit is contained in:
max_richter 2025-01-06 16:19:32 +01:00
parent 53c4d5b129
commit 90fcb1e4cd
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM denoland/deno:2.1.4 FROM denoland/deno:alpine-2.1.4
ARG GIT_REVISION ARG GIT_REVISION
ENV DENO_DEPLOYMENT_ID=${GIT_REVISION} ENV DENO_DEPLOYMENT_ID=${GIT_REVISION}
@ -7,7 +7,8 @@ WORKDIR /app
COPY . . COPY . .
RUN deno install --allow-scripts &&\ RUN apk install curl &&\
deno install --allow-scripts &&\
sed -i -e 's/"deno"/"no-deno"/' node_modules/@libsql/client/package.json &&\ sed -i -e 's/"deno"/"no-deno"/' node_modules/@libsql/client/package.json &&\
mkdir -p $DATA_DIR &&\ mkdir -p $DATA_DIR &&\
deno task build deno task build

View File

@ -26,7 +26,6 @@ export function createCache<T>(
}, },
set(key: string, value: T | unknown, opts: SetCacheOptions = {}) { set(key: string, value: T | unknown, opts: SetCacheOptions = {}) {
console.log("Setting cache", key);
const now = Date.now(); const now = Date.now();
const expiresIn = opts.expires ?? createOpts.expires; const expiresIn = opts.expires ?? createOpts.expires;
const expiresAt = expiresIn ? now + expiresIn : undefined; const expiresAt = expiresIn ? now + expiresIn : undefined;