fix: update dockerfile
This commit is contained in:
parent
53c4d5b129
commit
90fcb1e4cd
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user