Files
ads-saas/frontend/Dockerfile

19 lines
286 B
Docker

FROM node:20-alpine
WORKDIR /usr/src/app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose the internal port used by serv.js
EXPOSE 5001
# Start the frontend using the serv.js script
CMD ["npm", "run", "start"]