File size: 511 Bytes
8058749
 
 
9b49ed1
8058749
 
9b49ed1
02bd395
c83ff87
9b49ed1
8058749
 
 
 
c05fc34
8058749
 
 
 
7448957
8058749
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base image
FROM python:3.9-slim-buster


WORKDIR /app

COPY . .
python -m pip install --upgrade pip
RUN --mount=target=requirements.txt,source=requirements.txt 	pip install --no-cache-dir -r requirements.txt
CMD ["python", "app.py"]

# Copy package.json and install npm packages
COPY package.json .
RUN apt-get update && apt-get install -y npm && npm install
python -m pip install --upgrade pip
# Copy the rest of the files
COPY . .

# Expose the port
EXPOSE 3003

# Start the application
CMD ["npm", "start"]