Skip to content

Commit

Permalink
use node slim image
Browse files Browse the repository at this point in the history
  • Loading branch information
ovnrain committed Dec 2, 2023
1 parent 13516ae commit 56813e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:iron-alpine AS base
FROM node:iron-slim AS base

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
Expand All @@ -25,9 +25,11 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \

# -------------------

FROM node:iron-alpine
FROM node:iron-slim

RUN apk add --no-cache tini
RUN apt-get update && \
apt-get install -y --no-install-recommends tini && \
rm -rf /var/lib/apt/lists/*

ENV NODE_ENV production
USER node
Expand Down

0 comments on commit 56813e4

Please sign in to comment.