Spaces:
Runtime error
Runtime error
File size: 448 Bytes
1e3bf12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Use an official Node.js runtime as a parent image
FROM node:20-alpine AS builder
# Set working directory
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the app's source code
COPY . .
# Build the NestJS app
RUN npm run build:weatherapi
RUN mkdir -p dist/libs/proto && cp -r libs/proto dist/libs
# Start the application
CMD ["node", "dist/apps/weatherapi/main.js"]
# Expose app port
EXPOSE 8080
|