Browse Source

Revert memory limit env vars

master
buttercat1791 7 months ago
parent
commit
42cc8aa6d9
  1. 8
      Dockerfile

8
Dockerfile

@ -2,10 +2,6 @@ FROM denoland/deno:alpine-2.4.2 AS build @@ -2,10 +2,6 @@ FROM denoland/deno:alpine-2.4.2 AS build
WORKDIR /app/src
COPY . .
# Set memory limits for Deno to prevent memory leaks
ENV DENO_MEMORY_LIMIT=512MB
ENV DENO_GC_INTERVAL=1000
RUN deno install
RUN deno task build
@ -16,10 +12,6 @@ COPY --from=build /app/src/import_map.json . @@ -16,10 +12,6 @@ COPY --from=build /app/src/import_map.json .
ENV ORIGIN=http://localhost:3000
# Set memory limits for runtime to prevent memory leaks
ENV DENO_MEMORY_LIMIT=512MB
ENV DENO_GC_INTERVAL=1000
RUN deno cache --import-map=import_map.json ./build/index.js
EXPOSE 3000

Loading…
Cancel
Save