Skip to content

Commit

Permalink
chore: 统一基础镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Feb 4, 2024
1 parent 0dc9b60 commit 394c435
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,13 +1,15 @@
FROM node:20-alpine AS install
ARG BASE_IMAGE=node:20-bullseye-slim
FROM $BASE_IMAGE AS install

WORKDIR /opt/openbmclapi
RUN apk add build-base
RUN apt update && \
apt install -y build-essential python3
COPY package-lock.json package.json tsconfig.json ./
RUN npm ci
COPY src ./src
RUN npm run build

FROM node:20-bullseye-slim AS build
FROM $BASE_IMAGE AS build

RUN apt-get update && \
apt-get install -y nginx tini
Expand Down

0 comments on commit 394c435

Please sign in to comment.