diff --git a/Dockerfile b/Dockerfile index a3629bd..ae30e2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,18 @@ -FROM node:lts AS base +FROM node:20-slim AS base +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN corepack enable WORKDIR /app # By copying only the package.json and package-lock.json here, we ensure that the following `-deps` steps are independent of the source code. # Therefore, the `-deps` steps will be skipped if only the source code changes. COPY package.json pnpm-lock.yaml ./ -RUN corepack enable + WORKDIR /app COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile + FROM base AS prod-deps diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dd0407c..d9d6019 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2205,8 +2205,8 @@ packages: typescript: optional: true - tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + tslib@2.6.3: + resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} type-fest@2.19.0: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} @@ -2904,7 +2904,7 @@ snapshots: '@emnapi/runtime@1.2.0': dependencies: - tslib: 2.6.2 + tslib: 2.6.3 optional: true '@esbuild/aix-ppc64@0.21.5': @@ -4902,7 +4902,7 @@ snapshots: optionalDependencies: typescript: 5.4.5 - tslib@2.6.2: + tslib@2.6.3: optional: true type-fest@2.19.0: {} diff --git a/public/avatar.jpg b/public/avatar.jpg index e590edf..411d824 100644 Binary files a/public/avatar.jpg and b/public/avatar.jpg differ diff --git a/public/background.png b/public/background.png index cde08fc..b4fc64c 100644 Binary files a/public/background.png and b/public/background.png differ