Fix esbuild ENOENT error
This commit is contained in:
parent
e3a1a3c064
commit
25b6503049
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ WORKDIR /app
|
|||
COPY package.json package-lock.json esbuild.config.js ./
|
||||
# Copy application source before build so esbuild can locate entry files
|
||||
COPY . .
|
||||
# Install all dependencies, build with esbuild, then remove devDeps
|
||||
RUN npm ci && npm run build && npm prune --production
|
||||
# Install all dependencies, create dist folder, build with esbuild, then remove devDeps
|
||||
RUN npm ci && mkdir -p dist && npm run build && npm prune --production
|
||||
|
||||
# Expose the application port
|
||||
EXPOSE 3000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue