Fix esbuild ENOENT error

This commit is contained in:
Caileb 2025-05-29 15:55:17 -05:00
parent e3a1a3c064
commit 25b6503049

View file

@ -8,8 +8,8 @@ WORKDIR /app
COPY package.json package-lock.json esbuild.config.js ./ COPY package.json package-lock.json esbuild.config.js ./
# Copy application source before build so esbuild can locate entry files # Copy application source before build so esbuild can locate entry files
COPY . . COPY . .
# Install all dependencies, build with esbuild, then remove devDeps # Install all dependencies, create dist folder, build with esbuild, then remove devDeps
RUN npm ci && npm run build && npm prune --production RUN npm ci && mkdir -p dist && npm run build && npm prune --production
# Expose the application port # Expose the application port
EXPOSE 3000 EXPOSE 3000