Spaces:
Sleeping
Sleeping
File size: 534 Bytes
3e72e09 f609f53 3e72e09 f609f53 a445583 f609f53 71f66a5 3e72e09 f609f53 71f66a5 56904fe f609f53 71f66a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM node:18-alpine
# Install bash for startup script
RUN apk add --no-cache bash
# The /app directory should act as the main application directory
WORKDIR /app
# Copy and install frontend dependencies
COPY frontend/package*.json ./frontend/
RUN cd frontend && npm install --include=dev
# Copy application files
COPY frontend/. ./frontend/
# Copy startup script
COPY run_frontend.sh /app/run_frontend.sh
RUN chmod +x /app/run_frontend.sh
# Expose ports
EXPOSE 3000
# Start both frontend and router
CMD ["/app/run_frontend.sh"]
|