Melody/Dockerfile
2024-09-29 00:02:10 +08:00

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"]