Files
yara724api/Dockerfile
T
s.alikhani 6e56d0fa2e ci(deployment): build the maintenance api on parspack
Compile NestJS on Parspack and deploy the commit-tagged image from the existing API directory.
2026-11-22 14:43:23 +03:30

27 lines
698 B
Docker

# Use the official Node.js image as the base image
FROM docker.arvancloud.ir/node:20-alpine
RUN apk add --no-cache ffmpeg
WORKDIR /app
COPY package*.json ./
RUN npm config set registry "https://repo.hmirror.ir/npm"
# Install the project dependencies
RUN npm i --force --verbose --no-scripts
# Copy the rest of the application code to the working directory
COPY . .
RUN npm run build && test -f dist/src/main.js
# Expose the port on which your NestJS application will run
EXPOSE 3002
# Start the NestJS application
CMD ["node", "dist/src/main.js"]