morphic icon indicating copy to clipboard operation
morphic copied to clipboard

Add Dockerfile

Open sammcj opened this issue 10 months ago • 2 comments

fixes #17

sammcj avatar Apr 13 '24 08:04 sammcj

@sammcj is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Apr 13 '24 08:04 vercel[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 13, 2024 8:26am

vercel[bot] avatar Apr 13 '24 08:04 vercel[bot]

In my opinion it would be better to compile first and then run.

FROM oven/bun:1.1.3-alpine

RUN apk add --no-cache nodejs npm git

RUN git clone --depth=1 https://github.com/miurla/morphic /app && \
  rm -rf /app/.git && \
  cd /app && \
  bun i && \
  bun next telemetry disable

RUN cd /app && bun run build

WORKDIR /app

CMD ["bun", "run", "start"]

mayi avatar Apr 16 '24 08:04 mayi