Jonathand2028 commited on
Commit
e3b8f63
·
verified ·
1 Parent(s): 412fea0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install curl and gnupg (for adding NodeSource repo)
4
+ RUN apt-get update && apt-get install -y curl gnupg && \
5
+ curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
6
+ apt-get install -y nodejs && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # Now node and npm are installed
10
+ RUN node --version
11
+ RUN npm --version
12
+
13
+ # Continue with your Python app setup here...
14
+ COPY . /app
15
+ WORKDIR /app
16
+ RUN pip install -r requirements.txt
17
+
18
+ CMD ["python", "app.py"]