chore: change base image from node-buster-slim to node alpine
This commit is contained in:
parent
b157e0ec2f
commit
48baba8cdc
2 changed files with 3 additions and 10 deletions
|
@ -1,13 +1,10 @@
|
|||
ARG NODE_VERSION="18.12.1"
|
||||
ARG ALPINE_VERSION="3.16"
|
||||
|
||||
FROM node:${NODE_VERSION}-buster-slim AS node_base
|
||||
RUN apt update
|
||||
RUN apt install -y openssl
|
||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base
|
||||
|
||||
FROM node_base AS builder_base
|
||||
|
||||
RUN npm install node-gyp -g
|
||||
RUN npm install pnpm -g
|
||||
|
||||
# BUILDER
|
||||
|
@ -16,7 +13,7 @@ FROM builder_base AS builder
|
|||
WORKDIR /app
|
||||
|
||||
COPY ./pnpm-lock.yaml ./
|
||||
RUN pnpm fetch
|
||||
RUN pnpm fetch --no-scripts
|
||||
|
||||
COPY ./package*.json ./
|
||||
COPY ./prisma/schema.prisma ./prisma/
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
ARG NODE_VERSION="18.12.1"
|
||||
ARG ALPINE_VERSION="3.16"
|
||||
|
||||
FROM node:${NODE_VERSION}-buster-slim
|
||||
|
||||
RUN apt update
|
||||
RUN apt install -y openssl
|
||||
FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION}
|
||||
|
||||
RUN npm install pnpm -g
|
||||
RUN npm install node-gyp -g
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
Loading…
Reference in a new issue