ci: use node image
This commit is contained in:
parent
38f29890c1
commit
116ea59ab3
|
@ -2,14 +2,14 @@
|
||||||
ARG BUILDPLATFORM=linux/amd64
|
ARG BUILDPLATFORM=linux/amd64
|
||||||
|
|
||||||
# First stage: build
|
# First stage: build
|
||||||
FROM --platform=${BUILDPLATFORM} oven/bun:1.1.4 AS build
|
FROM --platform=${BUILDPLATFORM} node:19-bullseye-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN bun install
|
RUN npm install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN bun run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine AS runtime
|
FROM --platform=${BUILDPLATFORM} nginx:alpine AS runtime
|
||||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
Loading…
Reference in New Issue
Block a user