Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
WORKDIR /usr/src/app
|
3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends gnupg curl
|
4 |
+
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
|
5 |
+
apt-get install -y nodejs
|
6 |
+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
7 |
+
COPY requirements.txt ./
|
8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
+
COPY package.json ./
|
10 |
+
RUN npm install
|
11 |
+
COPY . .
|
12 |
+
CMD ["python", "./server.py"]
|