Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM public.ecr.aws/x8v8d7g8/mars-base:latest

WORKDIR /app

COPY . .

RUN pnpm install

CMD ["/bin/bash"]
19 changes: 19 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM public.ecr.aws/x8v8d7g8/mars-base:latest

WORKDIR /app

# Copy only manifest first to leverage Docker layer caching
COPY package.json pnpm-lock.yaml ./

# Ensure non-interactive install in CI contexts
ENV CI=true
# Prefer IPv4 to avoid ::1 binding issues in some environments
ENV NODE_OPTIONS=--dns-result-order=ipv4first

RUN pnpm install --frozen-lockfile

# Copy the rest of the source
COPY . .

# Allow passing the test command at runtime
ENTRYPOINT ["/bin/bash", "-lc"]
Loading