Files
Audio-Classifier/frontend/Dockerfile
Benoit 3e225b158f
Some checks failed
Build and Push Docker Images / Build Backend Image (push) Failing after 37s
Build and Push Docker Images / Build Frontend Image (push) Has been cancelled
Fix build et actions
2025-12-23 13:23:07 +01:00

27 lines
427 B
Docker

FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY frontend/package*.json ./
# Install dependencies
RUN npm ci
# Copy application code
COPY frontend/ .
# Build argument for API URL
ARG NEXT_PUBLIC_API_URL=http://localhost:8001
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
# Build the application
RUN npm run build
# Expose port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]