Skip to content

Commit

Permalink
chore: use base image
Browse files Browse the repository at this point in the history
  • Loading branch information
tmastrom committed May 6, 2024
1 parent cf0c6b2 commit 5b0fdf6
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions examples/fastify-api-reference/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
FROM node:18-bullseye AS base

RUN npm install pnpm@8 --global
RUN pnpm config set store-dir ~/.pnpm-store

WORKDIR /app

# Copy and build all packages to share across example builds
COPY pnpm-lock.yaml .
COPY pnpm-workspace.yaml .
COPY package.json .
COPY tsconfig.json .
COPY turbo.json .
COPY packages ./packages
RUN pnpm install
RUN pnpm build:packages
FROM base AS builder
# FROM ${BASE_IMAGE} AS builder
ARG BASE_IMAGE
FROM ${BASE_IMAGE} AS builder
WORKDIR /app

# Install dumb-init - minimal process init system
Expand Down

0 comments on commit 5b0fdf6

Please sign in to comment.