Skip to content

Commit 9bc6daa

Browse files
authored
Merge pull request #109 from morph-data/chore/update-starter-template
update starter template using new dockerfile
2 parents f843238 + 2433c15 commit 9bc6daa

2 files changed

Lines changed: 27 additions & 9 deletions

File tree

core/morph/include/Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Base image for Morph Cloud
2-
FROM public.ecr.aws/i1l4z0u0/morph-cloud:python${MORPH_PYTHON_VERSION}
2+
FROM public.ecr.aws/i1l4z0u0/morph-data:python${MORPH_PYTHON_VERSION}
33

44
# Set working directory
55
WORKDIR /var/task
@@ -9,13 +9,7 @@ COPY requirements.txt .
99
RUN pip install --no-cache-dir -r requirements.txt --target "${MORPH_TASK_ROOT}"
1010

1111
# Copy source code and dependencies
12-
COPY .morph/frontend/dist /var/task/.morph/frontend/dist
13-
COPY .morph/core /var/task/core
14-
COPY .morph/meta.json .morph/
15-
COPY morph_project.yml .
16-
COPY data ./data
17-
COPY src ./src
18-
COPY static ./static
12+
COPY . .
1913

2014
# Command to run the Lambda function
21-
CMD ["core.morph.api.app.handler"]
15+
CMD ["python", ".morph/core/morph/api/app.py"]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# .morph
2+
.morph/*
3+
!.morph/frontend/dist
4+
!.morph/core
5+
!.morph/meta.json
6+
7+
# node_modules
8+
node_modules
9+
package-lock.json
10+
package.json
11+
12+
.mock_user_context.json
13+
README.md
14+
.gitignore
15+
.env
16+
17+
# Python cache files
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
.pytest_cache/
22+
.coverage
23+
.mypy_cache/
24+
.ruff_cache/

0 commit comments

Comments
 (0)