morphic
morphic copied to clipboard
Add Dockerfile
fixes #17
@sammcj is attempting to deploy a commit to the morphic Team on Vercel.
A member of the Team first needs to authorize it.
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 |
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"]