23 lines
432 B
Docker
23 lines
432 B
Docker
FROM node:18.20.4-bullseye
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy all files to /app
|
|
COPY . /app/
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Run npm fund (optional)
|
|
RUN npm fund
|
|
|
|
# Run npm audit (optional, won't fail the build if issues are found)
|
|
RUN npm audit || true
|
|
|
|
# Run npm audit fix (optional, won't fail the build if issues are not fixed)
|
|
RUN npm audit fix || true
|
|
|
|
# Command to run the app
|
|
CMD ["npm", "run", "dev"]
|