mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-08-28 13:24:04 +00:00
Move Docker File to Node Alpine Base
This commit is contained in:
+5
-6
@@ -5,11 +5,10 @@
|
||||
|
||||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
FROM node:24-slim AS build-stage
|
||||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
apt-get update \
|
||||
&& apt-get install -y --no-install-recommends git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
FROM node:24-alpine AS build-stage
|
||||
RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
|
||||
apk add --no-cache git \
|
||||
&& apk cache clean
|
||||
|
||||
WORKDIR /tmp/src
|
||||
COPY package.json package-lock.json ./
|
||||
@@ -30,7 +29,7 @@ COPY . .
|
||||
RUN npm run build \
|
||||
&& npm prune --production
|
||||
|
||||
FROM node:24-slim AS final-stage
|
||||
FROM node:24-alpine AS final-stage
|
||||
COPY --from=build-stage /tmp/src/apps/draupnir /apps/draupnir
|
||||
COPY --from=build-stage /tmp/src/packages /packages
|
||||
COPY --from=build-stage /tmp/src/node_modules /node_modules
|
||||
|
||||
Reference in New Issue
Block a user