Spaces:
Runtime error
Runtime error
lgfunderburk
commited on
Commit
•
7d82335
1
Parent(s):
964a3b7
add header
Browse files- Dockerfile +14 -4
Dockerfile
CHANGED
@@ -1,11 +1,21 @@
|
|
1 |
-
#
|
2 |
-
# you will also find guides on how best to write your Dockerfile
|
3 |
-
|
4 |
FROM python:3.10
|
5 |
|
|
|
6 |
WORKDIR /app
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Copy the rest of the application code
|
11 |
COPY . .
|
|
|
1 |
+
# Use the official Python image as the base image
|
|
|
|
|
2 |
FROM python:3.10
|
3 |
|
4 |
+
# Set the working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy the poetry files
|
8 |
+
COPY pyproject.toml poetry.lock /app/
|
9 |
+
|
10 |
+
# Install poetry
|
11 |
+
RUN pip install poetry
|
12 |
+
|
13 |
+
# Install project dependencies
|
14 |
+
RUN poetry lock
|
15 |
+
RUN poetry install
|
16 |
+
|
17 |
+
# Copy the .env file
|
18 |
+
COPY .env .env
|
19 |
|
20 |
# Copy the rest of the application code
|
21 |
COPY . .
|