forked from OpenLake/Leaderboard-Pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (29 loc) · 765 Bytes
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
# Start with an Ubuntu base image
FROM ubuntu:latest
# Install Python and other necessary packages
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv \
curl \
make \
redis-server \
git
# Install Node.js (for React)
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs
# Install pnpm
RUN npm install -g pnpm
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy the project files into the container
COPY . .
# Set up Python virtual environment
RUN python3 -m venv env
ENV PATH="/usr/src/app/env/bin:$PATH"
# Install dependencies
RUN make install
# Expose ports (Django and React)
EXPOSE 8000 3000
# Run the application
CMD ["make", "dev"]