1
0
forked from a/lifeto-shop
This commit is contained in:
a 2025-06-23 01:36:30 -05:00
parent a0754399c7
commit 4d10b45b1e
No known key found for this signature in database
GPG Key ID: 2F22877AA4DFDADB

View File

@ -1,7 +1,10 @@
FROM node:24-alpine as NODEBUILDER FROM node:24-alpine as NODEBUILDER
WORKDIR /wd WORKDIR /wd
COPY . . # Copy only package files first for better caching
COPY package.json yarn.lock ./
RUN corepack yarn install RUN corepack yarn install
# Copy source code after dependencies are installed
COPY . .
RUN corepack yarn build RUN corepack yarn build
FROM caddy:2.10-alpine FROM caddy:2.10-alpine