fix: remove unused Deno from backend Dockerfile (#34)
Deno installed in builder stage but never used. Removes ~75MB from image and eliminates unused runtime ENV vars. Closes #34
This commit is contained in:
parent
9cd5eee49b
commit
b6c9702610
@ -1,7 +1,6 @@
|
|||||||
FROM python:3.12-slim AS builder
|
FROM python:3.12-slim AS builder
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl unzip \
|
RUN apt-get update && apt-get install -y --no-install-recommends curl unzip \
|
||||||
&& curl -fsSL https://deno.land/install.sh | sh \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
@ -44,9 +43,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY src/ ./src/
|
COPY src/ ./src/
|
||||||
|
|
||||||
ENV DENO_INSTALL="/root/.deno"
|
|
||||||
ENV PATH="${DENO_INSTALL}/bin:${PATH}"
|
|
||||||
|
|
||||||
ENV PLAYWRIGHT_BROWSERS_PATH=/app/.cache/ms-playwright
|
ENV PLAYWRIGHT_BROWSERS_PATH=/app/.cache/ms-playwright
|
||||||
RUN chown -R appuser:appuser /app
|
RUN chown -R appuser:appuser /app
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user