|
|
|
@ -2,10 +2,6 @@ FROM denoland/deno:alpine-2.4.2 AS build |
|
|
|
WORKDIR /app/src |
|
|
|
WORKDIR /app/src |
|
|
|
COPY . . |
|
|
|
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 install |
|
|
|
RUN deno task build |
|
|
|
RUN deno task build |
|
|
|
|
|
|
|
|
|
|
|
@ -16,10 +12,6 @@ COPY --from=build /app/src/import_map.json . |
|
|
|
|
|
|
|
|
|
|
|
ENV ORIGIN=http://localhost:3000 |
|
|
|
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 |
|
|
|
RUN deno cache --import-map=import_map.json ./build/index.js |
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 3000 |
|
|
|
EXPOSE 3000 |
|
|
|
|