This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/Dockerfile
Anton Kamalov 28ba6b09cc Test dockerfile
2025-03-06 20:01:03 +03:00

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"]