startbootstrap-startbootstrap-simple-sidebar
SUCCESS
2m 07s
History Source
SummaryIterations1Transcript3Dockerfile
01Iteration 1
WRITEWriteFile· step #1
0s
Dockerfile420 bytes written
text22 lines · 420 chars
FROM node:18-slim

# Create app directory
WORKDIR /app

# Install dependencies first to leverage Docker cache
COPY package.json package-lock.json ./

RUN npm ci

# Copy the rest of the source code
COPY . .

# Build project from source
RUN npm run build

# Expose the port used by the dev server (BrowserSync)
EXPOSE 3000

# Start the app (builds again if needed, but should be fast after first run)
CMD ["npm", "start"]
WRITEWriteFile· step #2
0s
.dockerignore65 bytes written
dockerignore10 lines · 65 chars
node_modules
dist
build
coverage
.vscode
.idea
*.log
.env
.env.*
VERIFYVerifyBuild· step #3
57s
VerifyBuildaccepted
Smoke [PASS]: test -f /app/dist/index.html || test -f /app/server.js
Smoke [PASS]: node -v