dockerfile
Browse files- .dockerfile +9 -2
.dockerfile
CHANGED
|
@@ -12,7 +12,11 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
|
| 12 |
RUN apt-get install -y nodejs
|
| 13 |
|
| 14 |
# Copy the requirements.txt file and install Python dependencies
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Install Prisma CLI using npm
|
| 18 |
RUN npm install @prisma/cli --save-dev
|
|
@@ -20,5 +24,8 @@ RUN npm install @prisma/cli --save-dev
|
|
| 20 |
# Generate Prisma client
|
| 21 |
RUN npx prisma generate
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Your start command
|
| 24 |
-
CMD ["
|
|
|
|
| 12 |
RUN apt-get install -y nodejs
|
| 13 |
|
| 14 |
# Copy the requirements.txt file and install Python dependencies
|
| 15 |
+
COPY requirements.txt ./
|
| 16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
+
|
| 18 |
+
# Copy the Prisma schema file
|
| 19 |
+
COPY prisma/schema.prisma ./prisma/
|
| 20 |
|
| 21 |
# Install Prisma CLI using npm
|
| 22 |
RUN npm install @prisma/cli --save-dev
|
|
|
|
| 24 |
# Generate Prisma client
|
| 25 |
RUN npx prisma generate
|
| 26 |
|
| 27 |
+
# Copy the rest of your application
|
| 28 |
+
COPY . .
|
| 29 |
+
|
| 30 |
# Your start command
|
| 31 |
+
CMD [ "python", "app.py" ]
|