Files
yara724-api/Dockerfile
T

22 lines
607 B
Docker

# Use the official Node.js image as the base image
FROM docker.arvancloud.ir/node:20-alpine
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 . .
# Expose the port on which your NestJS application will run
EXPOSE 3002
# Start the NestJS application
CMD ["npm", "start"]