Spaces:
Running
Running
davidgasquez
commited on
Commit
•
2dab0a8
1
Parent(s):
4210947
feat: :whale: Add initial Dockerfile for containerizing application
Browse filesIncludes:
- Python 3.12 as base image
- Copies necessary application files and directories
- Sets working directory to /app
- Runs `uv sync` during build
- Sets default command to run Dagster server on port 3000
- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12
|
2 |
+
|
3 |
+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
4 |
+
|
5 |
+
COPY datalia/ /app/datalia/
|
6 |
+
COPY dbt/ /app/dbt/
|
7 |
+
COPY Makefile pyproject.toml uv.lock /app/
|
8 |
+
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
RUN [ "uv", "sync" ]
|
12 |
+
|
13 |
+
CMD [ "uv", "run", "dagster", "dev", "-h", "0.0.0.0", "-p", "3000" ]
|
14 |
+
# CMD [ "bash" ]
|