31 lines
870 B
Docker
31 lines
870 B
Docker
FROM node:latest
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-pip \
|
|
golang-go
|
|
|
|
# Copy project directories
|
|
COPY frontend /app/frontend
|
|
COPY backend /app/backend
|
|
COPY yoomoney_src /app/yoomoney_src
|
|
WORKDIR /app/frontend/style
|
|
# Install Next.js and react-wavify
|
|
RUN npm install next --force && \
|
|
npm install react-wavify --force
|
|
# Start npm in background
|
|
CMD nohup npm run dev &
|
|
# Change to yoomoney_src directory and install Python dependencies
|
|
WORKDIR /app/yoomoney_src
|
|
RUN pip3 install -r requirements.txt --break-system-packages
|
|
# Run main.py in background
|
|
CMD nohup python3 main.py &
|
|
# Change to backend/api directory and run main.go
|
|
WORKDIR /app/backend/api
|
|
CMD nohup go run main.go &
|
|
|
|
# Change to backend/review directory and run main.go
|
|
WORKDIR /app/frontend/style/components
|
|
CMD nohup go run main.go &
|
|
EXPOSE 3000
|
|
CMD ["/bin/bash"] |