remove better-sqlite from main deps
All checks were successful
release-tag / release-image (push) Successful in 1m21s
All checks were successful
release-tag / release-image (push) Successful in 1m21s
rebuild lock remove dev deps from dockerfile
This commit is contained in:
@@ -6,11 +6,6 @@ WORKDIR /usr/src/app
|
||||
# install dependencies into temp directory
|
||||
# this will cache them and speed up future builds
|
||||
FROM base AS install
|
||||
RUN mkdir -p /temp/dev
|
||||
COPY package.json bun.lockb /temp/dev/
|
||||
RUN apt update && apt install python3 python3-pip make g++ -y
|
||||
RUN cd /temp/dev && bun install --frozen-lockfile
|
||||
|
||||
# install with --production (exclude devDependencies)
|
||||
RUN mkdir -p /temp/prod
|
||||
COPY package.json bun.lockb /temp/prod/
|
||||
@@ -19,7 +14,7 @@ RUN cd /temp/prod && bun install --frozen-lockfile --production
|
||||
# copy node_modules from temp directory
|
||||
# then copy all (non-ignored) project files into the image
|
||||
FROM base AS prerelease
|
||||
COPY --from=install /temp/dev/node_modules node_modules
|
||||
COPY --from=install /temp/prod/node_modules node_modules
|
||||
COPY . .
|
||||
|
||||
# [optional] tests & build
|
||||
|
||||
Reference in New Issue
Block a user