Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wip): use bookworm-slim for docker base image #8648

Merged
merged 6 commits into from
Jan 22, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# -----------------------------
# Stage 0: install dependencies
# -----------------------------
FROM node:20-bookworm AS base
FROM node:20-bookworm-slim AS base
WORKDIR /usr/app

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
g++ \
git \
libsasl2-modules-gssapi-mit \
nodejs \
python3 \
Expand Down Expand Up @@ -122,7 +123,7 @@ RUN yarn install --pure-lockfile --non-interactive --production
# Stage 3: execution environment for backend
# -----------------------------

FROM node:20-bookworm as prod
FROM node:20-bookworm-slim as prod
WORKDIR /usr/app

ENV NODE_ENV production
Expand Down
Loading