Update Dockerfile
Browse files- Dockerfile +14 -4
Dockerfile
CHANGED
@@ -1,8 +1,18 @@
|
|
1 |
-
# Use
|
2 |
-
FROM
|
3 |
|
4 |
# Set working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
#
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the specified base image
|
2 |
+
FROM ghcr.io/opendevin/sandbox:v0.1
|
3 |
|
4 |
# Set working directory
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Copy requirements file and application files
|
8 |
+
COPY requirements.txt requirements.txt
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
# Install dependencies from requirements.txt
|
12 |
+
RUN python -m pip install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
+
# Expose the application port
|
15 |
+
EXPOSE 3000
|
16 |
+
|
17 |
+
# Default command to run the application
|
18 |
+
CMD ["uvicorn", "opendevin.server.listen:app", "--port", "3000"]
|