From 28ba6b09cc3e7838d442234ef473027c572b8437 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Thu, 6 Mar 2025 20:01:03 +0300 Subject: [PATCH] Test dockerfile --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..2356d947 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +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"] \ No newline at end of file